Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
test case for bind
Browse files Browse the repository at this point in the history
  • Loading branch information
loveridge committed Aug 22, 2015
1 parent 5694027 commit d004b8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/complete_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ main() {
expect(results.getDate(3), equals(new DateTime(2000, 11, 11, 31, 31, 31)));
});
test('test bind', (){
var sql = 'UPDATE test_table set test_int=:b1, test_string=:b2';
var sql = 'UPDATE test_table set test_string=:b2, test_int=:b3';
var sql2 = 'SELECT test_int, test_string FROM test_table';
var stmt = con.createStatement(sql);
var stmt2 = con.createStatement(sql2);
stmt.bind(":b1", 10);
stmt.bind(":b3", 10);
stmt.bind(":b2", "hello");
stmt.execute();
con.commit();
Expand Down

0 comments on commit d004b8e

Please sign in to comment.