I have some text column, that have format like
["some text", ]
Let this column has name col1. And do
SELECT columname FROM table WHERE col1 = '["some text", ]'
I receive nothing. But with
SELECT columname FROM table WHERE col1 LIKE '["some text", ]'
I receive needed data. I really don't understand why is it so. I want to use =, 'cos I read a lot that LIKE is much slower. And also I really don't understand why is it so.
UPD: As requested more info
CREATE TABLE IF NOT EXISTS fulldata (col1 TEXT, data TEXT);
Insert I do via QSqlQuery with prepare
insertData.prepare("INSERT INTO fulldata(col1 , data) "
" VALUES(:col1, :data);");
insertData.bindValue(":col1", currentFilter);
currentFilter is [ "2014-01-14 00:00:00", 2 ]
Select I also do using QSqlQuery with prepare
selectQuery.prepare("SELECT data FROM fulldata WHERE col1 = :col1 ");
selectQuery.bindValue(":col1 ", strFilter);
strFilter is also [ "2014-01-14 00:00:00", 2 ]
Also I do select from "Qt SQL Browser" from Qt 5.1 examples, same result as from code.
My SQLite version = 3.7.17