Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# in column name #177

Open
otelconsulting opened this issue May 28, 2020 · 2 comments
Open

# in column name #177

otelconsulting opened this issue May 28, 2020 · 2 comments

Comments

@otelconsulting
Copy link

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?

@otelconsulting
Copy link
Author

problem is in function replaceNamesIn

@otelconsulting
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant