File tree Expand file tree Collapse file tree
driver-core/src/test/java/com/datastax/driver/core/querybuilder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,11 +113,13 @@ public void selectTest() throws Exception {
113113
114114 Date date = new Date ();
115115 date .setTime (1234325 );
116- query = "SELECT * FROM foo where d=1234325" ;
116+ query = "SELECT * FROM foo WHERE d=1234325; " ;
117117 select = select ().all ().from ("foo" ).where (eq ("d" , date ));
118+ assertEquals (select .toString (), query );
118119
119- query = "SELECT * FROM foo where b=0xCAFEBABE " ;
120+ query = "SELECT * FROM foo WHERE b=0xcafebabe; " ;
120121 select = select ().all ().from ("foo" ).where (eq ("b" , Bytes .fromHexString ("0xCAFEBABE" )));
122+ assertEquals (select .toString (), query );
121123
122124 try {
123125 select = select ().countAll ().from ("foo" ).orderBy (asc ("a" ), desc ("b" )).orderBy (asc ("a" ), desc ("b" ));
You can’t perform that action at this time.
0 commit comments