I'm working on library which allows me to create connections, commands, readers etc for 3 db types: oracle, postgresql and sql server. I need to pass parameters into query but it seems like postgres and oracle supports :
sign as parameter indicator, but sqlserver needs @
sign. I am wondering if there is any way to change this indicator into :
or maybe register new one?
I thought about creating my own parser but here is the thing: In postgresql I can do simple cast like "Description"::text
, so my parser will fail on this expression. In the other hand i can get @
sign in query f.e. "Description" ILIKE '%@%'
and don't know how to resolve this.
Is this possible to achieve?