Skip to content

Commit 046b49f

Browse files
committed
fix bug in encoding buffer values on update
1 parent a178c47 commit 046b49f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

33

4+
##### 1.6.10 (2018-11-20)
5+
- Fix: subtle bug in encoding buffer values on update.
6+
7+
48
##### 1.6.9 (2018-10-13)
59
- Fix: do not allow extraneous fields in update to cause silent error.
610

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ module.exports = Adapter => class PostgreSQLAdapter extends Adapter {
456456
const value = update.replace[field]
457457
index++
458458
if (Array.isArray(value)) parameters.push(value.map(inputValue))
459-
else parameters.push(value)
459+
else parameters.push(inputValue(value))
460460
set.push(`"${field}" = $${index}`)
461461
}
462462

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fortune-postgres",
33
"description": "Postgres adapter for Fortune.",
4-
"version": "1.6.9",
4+
"version": "1.6.10",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

0 commit comments

Comments
 (0)