-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit 9a98412
avoid additional buffer slice on string path
DataRowMessage.fields may now be either a string or a buffer slice
depending on the field format.
this relies on some assumption:
- fieldDescriptions is accurate when parseDataRowmessage is called. we
make a similar assumption in pg/lib/result.js, so this seems fine.1 parent e1201c1 commit 9a98412
2 files changed
+10
-5
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 | + | ||
83 | 84 |
| |
84 | 85 |
| |
85 | 86 |
| |
| |||
253 | 254 |
| |
254 | 255 |
| |
255 | 256 |
| |
257 | + | ||
256 | 258 |
| |
257 | 259 |
| |
258 | 260 |
| |
| |||
284 | 286 |
| |
285 | 287 |
| |
286 | 288 |
| |
287 | - | ||
289 | + | ||
290 | + | ||
291 | + | ||
292 | + | ||
293 | + | ||
294 | + | ||
288 | 295 |
| |
289 | 296 |
| |
290 | 297 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 | - | ||
56 | - | ||
55 | + | ||
57 | 56 |
| |
58 | 57 |
| |
59 | 58 |
| |
| |||
67 | 66 |
| |
68 | 67 |
| |
69 | 68 |
| |
70 | - | ||
71 | - | ||
69 | + | ||
72 | 70 |
| |
73 | 71 |
| |
74 | 72 |
| |
|
0 commit comments