diff options
Diffstat (limited to 'odb/sqlite')
-rw-r--r-- | odb/sqlite/statement.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/sqlite/statement.cxx b/odb/sqlite/statement.cxx index f503144..32e8d2a 100644 --- a/odb/sqlite/statement.cxx +++ b/odb/sqlite/statement.cxx @@ -121,7 +121,8 @@ namespace odb if (truncated && !*b.truncated) continue; - *b.truncated = false; + if (b.truncated) + *b.truncated = false; // Check for NULL unless we are reloading a truncated result. // @@ -154,7 +155,9 @@ namespace odb if (*b.size > b.capacity) { - *b.truncated = true; + if (b.truncated) + *b.truncated = true; + r = false; continue; } |