mysql icon indicating copy to clipboard operation
mysql copied to clipboard

Docs: how to handle NULL values

Open anarthal opened this issue 3 years ago • 0 comments

This section is missing a paragraph on how to handle NULL values effectively. Provide an example showing something like:

value v = /* get the value */
if (v.is_null()) {
    // handle the NULL case
} else {
    double d = v.get<double>(); // will throw on type mismatch
}

anarthal avatar May 14 '22 14:05 anarthal