Skip to content

Commit e76dc97

Browse files
committed
Update Readme.md
1 parent 3a07b22 commit e76dc97

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Readme.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,8 @@ connection.query({
850850
}
851851
});
852852
```
853-
WARNING: YOU MUST INVOKE the parser before returning from a custom typeCast function.
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+
854855
```
855856
field.string()
856857
field.buffer()
@@ -862,11 +863,8 @@ parser.parseLengthCodedString()
862863
parser.parseLengthCodedBuffer()
863864
parser.parseGeometryValue()
864865
```
865-
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)
866-
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)__
867867

868-
If you need a buffer there's also a `.buffer()` function and also a `.geometry()` one
869-
both used by the default type cast that you can use.
870868

871869
## Connection Flags
872870

0 commit comments

Comments
 (0)