Closed kubussku closed 1 year ago
Using rpostgis
to add PK solves the issue.
rpostgis::dbAddKey(conn = con,name = 'testing',colname = c('names'))
Hi @kubussku, upsert requires a unique index on the columns in where_cols
(which could be a PK, but doesn't have to be).
Tried using example approach described as well as mine similar one but either return "ON Conflict" error message - this happens only to postgres. (ver 14 , hosted on google cloud). And works as insert for mysql (ver 8.0 host on gc)
For MySQL instance upsert works like insert ignoring matching cases. Codes below
Given example below is which i created but the result is the same when using dbx github example
MYSQL 8.0 google cloud sql