Skip to content

Conversation

@kinlhp
Copy link

@kinlhp kinlhp commented Sep 3, 2016

As mentioned in #649 I need to update a record using more than one clause.
Scenario:
an object that has two attributes with @Unique, and the time to do an UPDATE on table records get the following exception:
android.database.sqlite.SQLiteException: near "nome_cidade": syntax error (code 1): , while compiling: UPDATE cidade SET sincronizacao=?,ultima_alteracao=?,ativo=?,hash=?,uf=? WHERE ibge = ?nome_cidade = ?
I noticed the following detail on this query UPDATE: ... WHERE ibge = ?nome_cidade = ?.
Looking well, it notes that should be ... WHERE ibge = ? AND nome_cidade = ?.

@mention-bot
Copy link

@kinlhp, thanks for your PR! By analyzing the annotation information on this pull request, we identified @sibelius, @whoshuu and @Vookash to be potential reviewers

@coveralls
Copy link

Coverage Status

Coverage remained the same at 74.786% when pulling 6979cba on kinlhp:issue-649 into ca5dd14 on satyan:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants