From d744b3057ab7d3a95387056d9df6372fa7ba3818 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Tue, 5 Mar 2013 13:19:19 +0100 Subject: [PATCH] InsertOrUpdate: id column may not exist, use first column from WHERE clause --- atom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom b/atom index fc14e46..f20a74a 100755 --- a/atom +++ b/atom @@ -472,7 +472,7 @@ InsertOrUpdate() { values+=( "$value" ) done if results=$( - Select "$table" id < <( + Select "$table" ${keys[0]} < <( for key in ${!keys[@]} do echo "${keys[$key]}" = "${values[$key]}"