Skip to content

Commit

Permalink
fix bug in encoding buffer values on update
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0uch committed Nov 20, 2018
1 parent a178c47 commit 046b49f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog


##### 1.6.10 (2018-11-20)
- Fix: subtle bug in encoding buffer values on update.


##### 1.6.9 (2018-10-13)
- Fix: do not allow extraneous fields in update to cause silent error.

Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ module.exports = Adapter => class PostgreSQLAdapter extends Adapter {
const value = update.replace[field]
index++
if (Array.isArray(value)) parameters.push(value.map(inputValue))
else parameters.push(value)
else parameters.push(inputValue(value))
set.push(`"${field}" = $${index}`)
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fortune-postgres",
"description": "Postgres adapter for Fortune.",
"version": "1.6.9",
"version": "1.6.10",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit 046b49f

Please sign in to comment.