mridoni / gixsql

GixSQL is an ESQL preprocessor and a series of runtime libraries to enable GnuCOBOL to access PostgreSQL, ODBC, MySQL, Oracle and SQLite databases.
GNU General Public License v3.0
16 stars 8 forks source link

fix compile warning for ODBC #43

Closed GitMensch closed 2 years ago

GitMensch commented 2 years ago

getColumns did not return anything for this error scenario

Original warning from g++ 10.2.1 (patched by Debian):

../../../../runtime/libgixsql-odbc/DbInterfaceManagerODBC.cpp: In member function ‘virtual bool DbInterfaceODBC::getColumns(std::string, std::string, std::vector<ColumnInfo*>&)’:
../../../../runtime/libgixsql-odbc/DbInterfaceManagerODBC.cpp:372:1: warning: control reaches end of non-void function [-Wreturn-type]
  372 | }
      | ^