Skip to content

Commit

Permalink
Tests for autoincrement and desc primary key added
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyr committed Apr 28, 2011
1 parent fa18fa6 commit 14b542a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sqlite3_lib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ create_table_sql_test() ->
?assertFlat(
"CREATE TABLE user (id INTEGER PRIMARY KEY, name TEXT);",
create_table_sql(user, [{id, integer, [primary_key]}, {name, text}])),
?assertFlat(
"CREATE TABLE user (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT);",
create_table_sql(user, [{id, integer, [{primary_key, autoincrement}]}, {name, text}])),
?assertFlat(
"CREATE TABLE user (id INTEGER PRIMARY KEY DESC, name TEXT);",
create_table_sql(user, [{id, integer, [{primary_key, desc}]}, {name, text}])),
?assertFlat(
"CREATE TABLE user (id INTEGER, name TEXT, PRIMARY KEY(id));",
create_table_sql(user,
Expand Down

0 comments on commit 14b542a

Please sign in to comment.