diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2011-02-13 01:03:29 -0500 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2011-02-13 01:03:29 -0500 |
| commit | 6fc29f2c44ac555f8d5ef1ec6a2df3503edcd583 (patch) | |
| tree | ac5407ba6233701062aa2621c1015002850e020f /src/utils.clj | |
| parent | 157c865f7486cd4ed684d2bf90c8a03d5b2164b5 (diff) | |
Fixed buggy assert-update logic
Diffstat (limited to 'src/utils.clj')
| -rwxr-xr-x | src/utils.clj | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils.clj b/src/utils.clj index ee64789..25814f9 100755 --- a/src/utils.clj +++ b/src/utils.clj @@ -269,8 +269,7 @@ (insert-values table cols values))) (defn assert-update - ([res ok err] (if (not (= (first res) 1)) err ok)) - ([res] (assert-update res true false))) + ([res] (= (first res) 1))) (defn sql-array [type arr] (with-connection *db* |
