You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+14-2
Original file line number
Diff line number
Diff line change
@@ -850,9 +850,21 @@ connection.query({
850
850
}
851
851
});
852
852
```
853
+
__WARNING: YOU MUST INVOKE the parser using one of these three field functions in your custom typeCast callback. They can only be called once.( see #539 for discussion)__
854
+
855
+
```
856
+
field.string()
857
+
field.buffer()
858
+
field.geometry()
859
+
```
860
+
are aliases for
861
+
```
862
+
parser.parseLengthCodedString()
863
+
parser.parseLengthCodedBuffer()
864
+
parser.parseGeometryValue()
865
+
```
866
+
__You can find which field function you need to use by looking at: [RowDataPacket.prototype._typeCast](https://github.com/felixge/node-mysql/blob/master/lib/protocol/packets/RowDataPacket.js#L41)__
853
867
854
-
If you need a buffer there's also a `.buffer()` function and also a `.geometry()` one
855
-
both used by the default type cast that you can use.
0 commit comments