From: Michael N. <mne...@us...> - 2003-06-10 21:40:23
|
Update of /cvsroot/ruby-dbi/src/lib/dbi/test In directory sc8-pr-cvs1:/tmp/cvs-serv7801/test Modified Files: testsqlbind.rb Log Message: fixed SQL tokenizer bug: single slashes are preserved Index: testsqlbind.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbi/test/testsqlbind.rb,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- testsqlbind.rb 16 May 2003 09:44:07 -0000 1.7 +++ testsqlbind.rb 10 Jun 2003 21:40:16 -0000 1.8 @@ -73,6 +73,13 @@ assert_equal sql, bind(self, sql, []) end + def test_slash + sql = "SELECT 5 / 4" + res = "SELECT 5 / 4" + assert_equal res, bind(self, sql, []) + end + + end $last_suite.add_test (TestSqlBind.suite) |