1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix a bug in sqldiff causing it to confuse blobs zero bytes in size with NULL values.

FossilOrigin-Name: 264e9c75875796cad773d39b775d4604546bc57a
This commit is contained in:
dan
2016-09-12 14:23:51 +00:00
parent ff02e200c0
commit 12c56aa452
4 changed files with 19 additions and 9 deletions

View File

@@ -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;
}