Skip to content
This repository has been archived by the owner on Dec 30, 2017. It is now read-only.

Commit

Permalink
Merge pull request #94 from joaquincasares/querybuilder_bug
Browse files Browse the repository at this point in the history
Test case that highlights lack of quotes
  • Loading branch information
Sylvain Lebresne committed Jul 5, 2013
2 parents f2e9832 + 45c6e12 commit cff2a91
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ public void selectTest() throws Exception {
select = select().all().from("foo2").where(gt(token("a", "b"), fcall("token", 42, 101)));
assertEquals(select.toString(), query);

query = "SELECT * FROM words WHERE w='):,ydL ;O,D';";
select = select().all().from("words").where(eq("w", "):,ydL ;O,D"));
assertEquals(select.toString(), query);

query = "SELECT * FROM words WHERE w='WA(!:gS)r(UfW';";
select = select().all().from("words").where(eq("w", "WA(!:gS)r(UfW"));
assertEquals(select.toString(), query);

try {
select = select("a").from("foo").where(in("a"));
fail();
Expand Down

0 comments on commit cff2a91

Please sign in to comment.