artemeff / eql

Erlang with SQL or not
MIT License
117 stars 18 forks source link

break named parameters at periods #10

Closed tsloughter closed 7 years ago

tsloughter commented 7 years ago

This is fairly specific to my use, so I'm not sure if it is acceptable. Basically I'd like name parameters to not only break on spaces but also periods and really open to any punctuation being part of the characters that breaks a named parameter.

Thoughts?

artemeff commented 7 years ago

commit queries2.sql example please :)

tsloughter commented 7 years ago

Woops, didn't realize I added that file, haha. I've simply moved the query into queries.sql.

artemeff commented 7 years ago

maybe use A-Za-z for named parameters? for queries like SELECT max(:field) FROM users; and your case

tsloughter commented 7 years ago

Ah, good point. Making the change.

tsloughter commented 7 years ago

@artemeff ping

artemeff commented 7 years ago

@tsloughter oh, sorry, didn't see the changes!