auraphp/Aura.SqlQuery

# in column name

Opened this issue · 2 comments

Working with an exsisting DB structure and they have # special char all over their column names in a DB2 database.

Using
->orderBy( 'A.G01GL#' )

results in the sql statement being

ORDER BY
"A"."G01GL"# ASC

Any advice on how to get around this?

problem is in function replaceNamesIn

Modifying the regex in replaceNamesIn to /(\b)([a-z_][a-z0-9_]).([a-z#][a-z0-9#])/i solved it for me.