Skip to content

Commit

Permalink
correct SQL statement
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Aug 12, 2020
1 parent ec05b45 commit da46f86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ import de.westnordost.streetcomplete.quests.oneway.data.WayTrafficFlowTable
*/
db.execSQL("""
DELETE FROM ${OsmQuestTable.NAME}
WHERE ${OsmQuestTable.Columns.ELEMENT_TYPE} = ${Element.Type.RELATION.name}
WHERE ${OsmQuestTable.Columns.ELEMENT_TYPE} = "${Element.Type.RELATION.name}"
""".trimIndent())
db.execSQL("""
DELETE FROM ${UndoOsmQuestTable.NAME}
WHERE ${UndoOsmQuestTable.Columns.ELEMENT_TYPE} = ${Element.Type.RELATION.name}
WHERE ${UndoOsmQuestTable.Columns.ELEMENT_TYPE} = "${Element.Type.RELATION.name}"
""".trimIndent())
db.execSQL("""
DELETE FROM ${RelationTable.NAME}
Expand Down

0 comments on commit da46f86

Please sign in to comment.