diff --git a/uppsrc/MSSQL/MSSQL.h b/uppsrc/MSSQL/MSSQL.h index 407969a97..b80bbc5d8 100644 --- a/uppsrc/MSSQL/MSSQL.h +++ b/uppsrc/MSSQL/MSSQL.h @@ -3,6 +3,8 @@ #include "ODBC/ODBC.h" +// debian: sudo apt-get install unixodbc-dev + namespace Upp { String MsSqlTextType(int width); diff --git a/uppsrc/MySql/MySql.h b/uppsrc/MySql/MySql.h index dd5d5662f..214baa27b 100644 --- a/uppsrc/MySql/MySql.h +++ b/uppsrc/MySql/MySql.h @@ -1,6 +1,8 @@ #ifndef __mysql_h__ #define __mysql_h__ +// debian: sudo apt-get install libmysqlclient-dev + #ifndef flagNOMYSQL #include diff --git a/uppsrc/ODBC/ODBC.cpp b/uppsrc/ODBC/ODBC.cpp index cad128dda..88cae540f 100644 --- a/uppsrc/ODBC/ODBC.cpp +++ b/uppsrc/ODBC/ODBC.cpp @@ -615,7 +615,7 @@ bool ODBCConnection::Fetch0() int ct = string_type[i]; if(!IsOk(SQLGetData(session->hstmt, i + 1, ct, &tm, 0, &li))) break; - if(li != SQL_NULL_DATA && li >= 0) + if(li != SQL_NULL_DATA && li >= 0) { if(ct == SQL_C_WCHAR) { WStringBuffer sb; sb.SetLength(li / 2); @@ -630,6 +630,7 @@ bool ODBCConnection::Fetch0() break; v = String(sb); } + } break; } fetchrow.Add(v); diff --git a/uppsrc/ODBC/ODBC.h b/uppsrc/ODBC/ODBC.h index 306e446da..6bc5e6f0c 100644 --- a/uppsrc/ODBC/ODBC.h +++ b/uppsrc/ODBC/ODBC.h @@ -5,6 +5,8 @@ #include #include +// debian: apt-get install unixodbc-dev + namespace Upp { bool ODBCPerformScript(const String& text, StatementExecutor& executor, Gate2 progress_canceled = false); diff --git a/uppsrc/PostgreSQL/PostgreSQL.h b/uppsrc/PostgreSQL/PostgreSQL.h index 339bf6186..e27c4020c 100644 --- a/uppsrc/PostgreSQL/PostgreSQL.h +++ b/uppsrc/PostgreSQL/PostgreSQL.h @@ -10,6 +10,8 @@ #include #endif +// debian: sudo apt-get install libpq-dev + namespace Upp { // Postgre -> Value types