aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-10-23 13:04:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-10-23 13:04:04 +0200
commitcca05605ba1e79c8b4e7c66b0a57ba42174afa5c (patch)
treed63d2c76eaa6e1ee84d7839202551e5db6521bdc
parent8259f53b15714aa115db1c43fb8b1b63ddf02bd5 (diff)
Fix incorrect rnull array subscript
-rw-r--r--odb/pgsql/database.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/pgsql/database.cxx b/odb/pgsql/database.cxx
index 5c60957..51752d7 100644
--- a/odb/pgsql/database.cxx
+++ b/odb/pgsql/database.cxx
@@ -319,7 +319,7 @@ namespace odb
native_binding nparam (values, lengths, formats, 1);
bool rnull[1];
- bind rbind[1] = {{bind::boolean_, &exists, 0, 0, &rnull[1], 0}};
+ bind rbind[1] = {{bind::boolean_, &exists, 0, 0, &rnull[0], 0}};
binding result (rbind, 1);
result.version++;