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

Mysql bug with IsEqualTo and Like #37

Open
minus4 opened this issue Nov 17, 2009 · 0 comments
Open

Mysql bug with IsEqualTo and Like #37

minus4 opened this issue Nov 17, 2009 · 0 comments

Comments

@minus4
Copy link

minus4 commented Nov 17, 2009

this code:

[code]

var rdr = new Select().From()
.Where("orderitem_sessionid")
.Like("qA9tRFlFeNyu6TK71EY8a5fpVmfFK6ZQMUAyzzylIRBLyRnDL1")
.And("orderitem_productid")
.In(product.All().Where(x => x.product_Category == category));

[/code]

creates this miss-fired SQL

SELECT ID, orderitem_orderid, orderitem_productid, orderitem_qty, orderitem_total, orderitem_sessionid, orderitem_internal, orderitem_measurement FROM orderitems\r\n\r\n WHERE orderitem_sessionid LIKE @0 AND orderitem_productid IN (@1in1,@1in2,@1in3,@1In4,@1in5,@1In6,@1In7,@1In8,@1in9,@1In10,@1In11,@1In12,@1In13,@1In14,@1In15,@1In16,@1In17,@1In18,@1In19,@1in20)

notice the @0

this is also same for IsEqualTo, i have tried a smaller string of just five letters and still no joy subsonic allways outputs a zero

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