If I select use
try! connect?.prepare("SELECT * FROM words WHERE category=:category AND language=:language ORDER BY RANDOM()", ["category":category, "language":language])
it will crash, like this
But use
try! connect?.prepare("SELECT * FROM words WHERE category=? AND language=? ORDER BY RANDOM()", [category, language])
it‘s OK
If I select use![76F3D71E-D6A8-4F6F-9C7E-BD9CD5AF8CA7](https://user-images.githubusercontent.com/2186746/71870872-4ef54e80-3152-11ea-847d-ec6053bc8a5f.png)
try! connect?.prepare("SELECT * FROM words WHERE category=:category AND language=:language ORDER BY RANDOM()", ["category":category, "language":language])
it will crash, like thisBut use
try! connect?.prepare("SELECT * FROM words WHERE category=? AND language=? ORDER BY RANDOM()", [category, language])
it‘s OK