HCoop
/
hcoop
/
smlsql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d08450a
)
Add proper handling of null column values
origin
author
Adam Chlipala
<adamc@hcoop.net>
Fri, 15 Apr 2005 17:04:42 +0000
(17:04 +0000)
committer
Adam Chlipala
<adamc@hcoop.net>
Fri, 15 Apr 2005 17:04:42 +0000
(17:04 +0000)
libpq/pg.sml
patch
|
blob
|
blame
|
history
diff --git
a/libpq/pg.sml
b/libpq/pg.sml
index
de1a9e8
..
1b99da2
100644
(file)
--- a/
libpq/pg.sml
+++ b/
libpq/pg.sml
@@
-104,7
+104,11
@@
struct
let
fun build (~1, acc) = acc
| build (j, acc) =
- build (j-1, makeValue (F_PQgetvalue.f' (roRes, i, j)) :: acc)
+ build (j-1,
+ if F_PQgetisnull.f' (roRes, i, j) <> 0 then
+ NONE :: acc
+ else
+ makeValue (F_PQgetvalue.f' (roRes, i, j)) :: acc)
in
builder (i+1, f (build (nf-1, []), acc))
end