forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5e11e73
committed
Fix bugs in sqlchar_to_unicode and unicode_to_sqlchar: both were measuring
the length of a UTF8 character with pg_mblen (wrong if DB encoding isn'tUTF8), and the latter was blithely assuming that a static buffer would somehowrevert to all zeroes for each use.1 parent45d146a commit5e11e73
1 file changed
+18
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
1405 | 1405 | | |
1406 | 1406 | | |
1407 | 1407 | | |
1408 | | - | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
1409 | 1413 | | |
1410 | 1414 | | |
1411 | 1415 | | |
| |||
1495 | 1499 | | |
1496 | 1500 | | |
1497 | 1501 | | |
1498 | | - | |
| 1502 | + | |
| 1503 | + | |
1499 | 1504 | | |
| 1505 | + | |
1500 | 1506 | | |
1501 | 1507 | | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1506 | 1517 | | |
1507 | 1518 | | |
1508 | 1519 | | |
| |||
0 commit comments
Comments
(0)