Skip to content

Commit

Permalink
Revert "fix: insert array into json column (knex#5321)"
Browse files Browse the repository at this point in the history
This reverts commit dc6dbbf.
  • Loading branch information
mingoing authored and minh-hoang-trinh committed Jan 16, 2023
1 parent 3475d81 commit ffe19e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Expand Up @@ -401,7 +401,7 @@ class Client extends EventEmitter {
if (i > 0) str += ', ';
let value = values[i];
// json columns can have object in values.
if (isPlainObject(value) || Array.isArray(value)) {
if (isPlainObject(value)) {
value = JSON.stringify(value);
}
str += this.parameter(
Expand Down

0 comments on commit ffe19e9

Please sign in to comment.