diff options
-rw-r--r-- | sd-add.fish | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sd-add.fish b/sd-add.fish index dd4eb62..9e0e0ba 100644 --- a/sd-add.fish +++ b/sd-add.fish @@ -1,4 +1,3 @@ function sd-add - set idx (math 1+(sqlite3 "$argv[1]" "SELECT MAX(idx) FROM cards")) - sqlite3 "$argv[1]" "INSERT INTO cards VALUES ($idx, 256, '$argv[2]', '$argv[3]')" + sqlite3 "$argv[1]" "INSERT INTO cards VALUES (NULL, 256, '$argv[2]', '$argv[3]')" end |