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

Column names are not escaped #59

Open
bergmark opened this issue Aug 11, 2014 · 4 comments
Open

Column names are not escaped #59

bergmark opened this issue Aug 11, 2014 · 4 comments
Labels

Comments

@bergmark
Copy link

If you define a column as eg Wire "don'tdothis" opaleye will generate invalid queries.

@tomjaguarpaw
Copy link
Collaborator

Interesting. Is this actually a valid column name?

@bergmark
Copy link
Author

Yep

# create table x ("id'" int);
CREATE TABLE
# insert into x ("id'") values (1);
INSERT 0 1
# select * from x;
 id'
-----
   1
(1 row)

I don't really care about this by the way, but thought it was worth mentioning.

@tomjaguarpaw
Copy link
Collaborator

It's definitely worth having a record of it, so thanks for pointing it out.

@tomjaguarpaw
Copy link
Collaborator

I think this is now fixed in Opaleye 1: tomjaguarpaw/haskell-opaleye@3d9946f

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

No branches or pull requests

2 participants