sql-bricks-postgres icon indicating copy to clipboard operation
sql-bricks-postgres copied to clipboard

doUpdate argument is an array not string

Open kayvaninvemo opened this issue 4 years ago • 2 comments

In the document there is an example as follow:

.onConflict('name').doUpdate('age')

but actually it should be:

.onConflict('name').doUpdate(['age'])

do I miss a thing?

kayvaninvemo avatar Jan 18 '21 21:01 kayvaninvemo

Can make both work, I guess. Do you want to create a PR? Also lacking tests here :(.

Suor avatar Apr 07 '22 08:04 Suor

I took a look at the code. Actually the code is more complicated for my limited time to understand and fix. But I can fix the example in Documentation.

kayvaninvemo avatar May 02 '22 13:05 kayvaninvemo