]> granicus.if.org Git - pdns/commitdiff
Make the godbc module not exit on SQL_SUCCESS_WITH_INFO
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 16 Dec 2015 12:06:05 +0000 (13:06 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 16 Dec 2015 12:06:42 +0000 (13:06 +0100)
modules/godbcbackend/sodbc.cc

index e2af0d0dd8432d54467bf2c19a61dded6404ae98..b876f32bed38f97eab562a8b828dfcf2999d5116 100644 (file)
@@ -6,7 +6,7 @@
 static void testResult( SQLRETURN result, SQLSMALLINT type, SQLHANDLE handle, const std::string & message )
 {
   // cerr<<"result = "<<result<<endl;
-  if ( result == SQL_SUCCESS) // FIXME: testing only? || result == SQL_SUCCESS_WITH_INFO )
+  if ( result == SQL_SUCCESS || result == SQL_SUCCESS_WITH_INFO )
     return;
 
   ostringstream errmsg;