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

Commit

Permalink
Added test for Statement.executeUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlucas committed Aug 16, 2015
1 parent 14f583c commit cbc4c85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/statement_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ main() {
expect(results.getInt(1), equals(1));
});

test('.executeUpdate', () {
var stmt = conn.createStatement('INSERT INTO stmt_test (test_int) VALUES (NULL)');
expect(stmt.executeUpdate(), 1);
});

group('setTimestamp', () {
test('with UTC', () {
var stmt = conn.createStatement('INSERT INTO stmt_test (test_ts) VALUES (:1)');
Expand Down

0 comments on commit cbc4c85

Please sign in to comment.