ramsql
ramsql copied to clipboard
like operator doesnt seem to work.
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
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.