Jump to content
Squamis

FireDAC + TableNames with '$'

Recommended Posts

To summarize/simplify...

 

These work:

 

SELECT * FROM wares$rules "wares$rules$"

 

SELECT * FROM wares$rules WHERE fldidxwarerule = :dummy_string_param

 

SELECT * FROM wares$rules "wares$$rules$$" WHERE fldidxwarerule = :dummy_string_param

 

But when there is more than one single $ in the table name and there is a parameter in the query it does not:

 

SELECT * FROM wares$rules "wares$rules$" WHERE fldidxwarerule = :dummy_string_param

 

[FireDAC][Phys][PG][libpq] ERROR: syntax error at or near ":"

Edited by weirdo12

Share this post


Link to post
Just now, Squamis said:

You are completely right!

This might be of some help to Dmitry I suppose.

 

These also work:

 

SELECT * FROM wares$rules "wares$ rules$" WHERE fldidxwarerule = :dummy_string_param

 

SELECT * FROM wares$rules "wares $ rules $" WHERE fldidxwarerule = :dummy_string_param

 

SELECT * FROM wares$rules "$" WHERE fldidxwarerule = :dummy_string_param

 

SELECT * FROM wares$rules "$$$$" WHERE fldidxwarerule = :dummy_string_param

 

SELECT * FROM wares$rules "$ $" WHERE fldidxwarerule = :dummy_string_param

 

But these do not:

 

SELECT * FROM wares$rules "$$" WHERE fldidxwarerule = :dummy_string_param

 

SELECT * FROM wares$rules "$$$" WHERE fldidxwarerule = :dummy_string_param

  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×