aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/model/utils.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-09-04 12:52:12 +0200
committerChristopher Baines <mail@cbaines.net>2019-09-04 12:52:12 +0200
commit14419422008cc1ba42dea5ef90e6fb2762633064 (patch)
tree90ee30a94a7784b6d53a9c1a0c178fb8336687a7 /guix-data-service/model/utils.scm
parent902560d56bb111bb6b44989a0b3a8bdd36313090 (diff)
downloaddata-service-14419422008cc1ba42dea5ef90e6fb2762633064.tar
data-service-14419422008cc1ba42dea5ef90e6fb2762633064.tar.gz
Hack better NULL support on to (squee)
PQgetvalue used by squee returns null values as empty strings, which are ambiguous for string fields. Therefore, use PQgetisnull to implement a serialiser for squee which checks empty strings to see if they're actually a NULL value, then returns '() in this case. exec-query-with-null-handling can be used to access this behaviour.
Diffstat (limited to 'guix-data-service/model/utils.scm')
0 files changed, 0 insertions, 0 deletions