You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is an issue or just user error.
I have been trying to get the following query to execute: select message from logs where message like $1
This is the table schema: CREATE TABLE logs (id BIGSERIAL PRIMARY KEY, logTime timestamp, ip text, machine text, agent text, name text, level text, code SMALLINT, message text);
The query parameter is "%Ack complete%".
The error message is: table "like" does not exist
The text was updated successfully, but these errors were encountered:
haggerty-william
changed the title
'Where like' doesnt seem to work.
like operator doesnt seem to work.
Feb 24, 2017
FYI:
The finalQuery variable before being written to the db connection in stmt.go Query() is: select message from logs where message like $$%Ack complete%$$
I looked through some code and it doesn't look like the 'like' operator is implemented. Ill try to set aside some time and take a crack at implementing it when I get a chance.
I don't know if this is an issue or just user error.
I have been trying to get the following query to execute:
select message from logs where message like $1
This is the table schema:
CREATE TABLE logs (id BIGSERIAL PRIMARY KEY, logTime timestamp, ip text, machine text, agent text, name text, level text, code SMALLINT, message text);
The query parameter is "%Ack complete%".
The error message is:
table "like" does not exist
The text was updated successfully, but these errors were encountered: