Files
soci/docs
Vadim Zeitlin d202e0d846 Initialize indicator to i_null even when there is no data at all
It is unexpected and error-prone to leave the indicator uninitialized if
a query doesn't retrieve any data, as it's too easy to forget to check
for got_data() and have the code working unpredictably depending on the
initial value of the uninitialized variable.

So always initialize the indicator value to i_null, this can't do any
harm, avoids bugs due to not checking got_data() and makes the code
simpler in the common case when absence of data is the same as having
NULL value in the database.

See #28, #856.
2021-03-12 02:20:26 +01:00
..
2018-02-26 18:09:33 +01:00
2020-10-19 16:08:28 +02:00
2021-01-15 13:46:27 +01:00
2018-02-26 22:18:10 +01:00
2019-01-17 16:06:29 +01:00
2018-02-26 18:09:33 +01:00
2019-01-17 11:40:04 +01:00