summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-08 09:24:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-08 09:49:02 +0200
commitfa54d73a59a87902a0054d12fa684197b1939b19 (patch)
treeda910f13e06482c7f6b1bac36bb4c6541c718b72 /odk/examples/DevelopersGuide
parentbdf75a9f6b429914ebfa3942051db61504a3b30c (diff)
Fix Boolean value operations
(css.sdbc.ColumnValue.NULLABLE happens to be 1, so the odd comparison is harmless and redundant.) Change-Id: I6b64cc083e72198c71e4e38ec4347f79af924621
Diffstat (limited to 'odk/examples/DevelopersGuide')
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
index 0530fedb2aec..aa6c94eaceb2 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SConnection.cxx
@@ -352,7 +352,7 @@ void OConnection::buildTypeInfo() throw( SQLException)
aInfo.aLiteralPrefix = xRow->getString (4);
aInfo.aLiteralSuffix = xRow->getString (5);
aInfo.aCreateParams = xRow->getString (6);
- aInfo.bNullable = xRow->getBoolean (7) == ColumnValue::NULLABLE;
+ aInfo.bNullable = xRow->getBoolean (7);
aInfo.bCaseSensitive = xRow->getBoolean (8);
aInfo.nSearchType = xRow->getShort (9);
aInfo.bUnsigned = xRow->getBoolean (10);