diff options
author | drh <drh@noemail.net> | 2015-04-09 19:39:54 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-04-09 19:39:54 +0000 |
commit | 2139d252ddcaeb2e162b04694b912cb0b2148d4f (patch) | |
tree | 8af77e7d49efc380d7f427c079f1a3bb9f2a1380 /tool/sqldiff.c | |
parent | a37591cdd10ead51ed87a43aeeb9f83312636fd1 (diff) | |
download | sqlite-2139d252ddcaeb2e162b04694b912cb0b2148d4f.tar.gz sqlite-2139d252ddcaeb2e162b04694b912cb0b2148d4f.zip |
Fix incorrect column names in UPDATE statements generated by the sqldiff
utility.
FossilOrigin-Name: ee53b46011852e27db23708387fe1e918cc8284c
Diffstat (limited to 'tool/sqldiff.c')
-rw-r--r-- | tool/sqldiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/sqldiff.c b/tool/sqldiff.c index 28b66b2c3..53c5977ed 100644 --- a/tool/sqldiff.c +++ b/tool/sqldiff.c @@ -658,7 +658,7 @@ static void diff_one_table(const char *zTab){ zSep = " SET"; for(i=nPk+1; i<nQ; i+=2){ if( sqlite3_column_int(pStmt,i)==0 ) continue; - printf("%s %s=", zSep, az2[(i-1)/2]); + printf("%s %s=", zSep, az2[(i+nPk-1)/2]); zSep = ","; printQuoted(sqlite3_column_value(pStmt,i+1)); } |