Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Expressions with IN ? syntax don't work #84

Closed
wburningham opened this issue Jul 25, 2014 · 2 comments
Closed

Expressions with IN ? syntax don't work #84

wburningham opened this issue Jul 25, 2014 · 2 comments
Labels

Comments

@wburningham
Copy link

When I run the following:

 squel.expr().and('bob IN ?' ,[4,'4']).toString()

I expect to get bob IN (4, '4') but I get the unquoted version bob IN (4, 4)

This behavior ocurs on both version 3.5.0 and master as of commit 7033361

@hiddentao hiddentao added the Bug label Jul 29, 2014
@hiddentao
Copy link
Owner

I think that occurs even with the normal query builders because squel assumes the values passed for the IN clause are already formatted. Will fix for next minor release.

@hiddentao
Copy link
Owner

Should be fixed in 3.6.1

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

No branches or pull requests

2 participants