Comments (8)
What does the table schema look like and at any point are any of the values in any of the columns null, empty, or anything special like that?
from mysql.
Give me a few hours to reproduce that ;)
from mysql.
This is the schema. And no, all of the columns have normal values, no NULL or empty strings or something like that
from mysql.
Can you quantify "sometimes"? Is it happening in regular intervals, if so how big are they? This sounds like it could get fairly tricky to reproduce on my end without further information, but I'll have a look.
from mysql.
I ran into this too. It occurs rarely but that makes me sweat even more.
Testcase at http://gist.github.com/583048
from mysql.
I think it happens when the end of a string value aligns exactly to the end of a buffer, then the entire buffer is used but the parser state doesn't advance to COLUMN_VALUE_LENGTH. This causes the parser to assign an empty string to the next field and assign subsequent values to the wrong column.
We don't see it that often because generally an entire row is received in one buffer, so only the end of the last column's value aligns to the end of the buffer, but then there are no 'next' columns to f*ck up.
Very simple patch: http://gist.github.com/583103
from mysql.
Excellent test case, analysis and patch! Thank you so much. I just incorporated your changes and pushed out v0.5.0 to npm! Let me know if this works for you.
from mysql.
Yup it does. Thanks
from mysql.
Related Issues (20)
- 腾讯云系统centos7.2安装mysql失败,怎么办麽、 HOT 1
- Error connecting to Aurora DB using the "Amazon RDS" profile HOT 4
- mysql.createPool transaction with loop HOT 1
- Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client HOT 1
- How to catch ER_BAD_FIELD_ERROR HOT 2
- Missing information in Documentation HOT 1
- Multiple insert using array notation HOT 1
- Uncaught exception for "Connection lost: The server closed the connection." HOT 3
- Node 17.4, MySQL Server 8.0, Mac OS Monterey, ECONNREFUSED with error code -61, ::1:3306 HOT 5
- breaks scope HOT 3
- Supported MySQL Versions HOT 2
- readable stream does not seem to support readableLength property HOT 14
- Question - Get query of row HOT 2
- Write cluster failover, pool stuck with read-only cluster HOT 1
- The correct table name when creating the table, with an error: ER_WRONG_TABLE_NAME. HOT 4
- Better type casting of BIT values HOT 3
- the connection string is parsed wrongly HOT 1
- Updating URL parsing to WHATWG URL HOT 2
- RangeError: The value of "offset" is out of range. It must be >= 0 and <= 5254. Received 5261
- getConnection always get timed out
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql.