diff options
author | dan <dan@noemail.net> | 2016-09-12 14:23:51 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2016-09-12 14:23:51 +0000 |
commit | 12c56aa452588ca3a8efc2321fe9c15853bc5850 (patch) | |
tree | 1fd27c35fb7c5a1f2265ad5ff447dc3c1c127947 /tool/sqldiff.c | |
parent | ff02e200c0f649607e49c3d74ae4d931986cb941 (diff) | |
download | sqlite-12c56aa452588ca3a8efc2321fe9c15853bc5850.tar.gz sqlite-12c56aa452588ca3a8efc2321fe9c15853bc5850.zip |
Fix a bug in sqldiff causing it to confuse blobs zero bytes in size with NULL values.
FossilOrigin-Name: 264e9c75875796cad773d39b775d4604546bc57a
Diffstat (limited to 'tool/sqldiff.c')
-rw-r--r-- | tool/sqldiff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/sqldiff.c b/tool/sqldiff.c index cbb57e777..67f3197bb 100644 --- a/tool/sqldiff.c +++ b/tool/sqldiff.c @@ -403,7 +403,8 @@ static void printQuoted(FILE *out, sqlite3_value *X){ } fprintf(out, "'"); }else{ - fprintf(out, "NULL"); + /* Could be an OOM, could be a zero-byte blob */ + fprintf(out, "X''"); } break; } |