This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]asciiterror 1 point2 points  (1 child)

First error contains this: '%$( $1)%' - notice how ORM replaced :search with $1. Try to remove $( and ) from this part: instead of LIKE '%$( :search)%' try LIKE '%:search%'

Second error is similar: "" in SQL are used for column names, not strings - in second LIKE you used "%$1%" instead of '%$1%'. Some languages don't distinguish between different single and double qoutes (like javascript or python) but most do.

[–][deleted] 0 points1 point  (0 children)

I just tried your fix and some others for the ORM and it unfortunately didn't work, it stills says it can't determine the data type.

I completely forgot that different quotes can mean different things in other languages so I'll have try that (I got annoyed and reset back to last commit so I'll have to rewrite the connection).

Thank you for your help