.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@10333 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-10-18 08:39:56 +00:00
parent 99e5bccc97
commit 42d3e65fa5
5 changed files with 10 additions and 1 deletions

View file

@ -3,6 +3,8 @@
#include "ODBC/ODBC.h"
// debian: sudo apt-get install unixodbc-dev
namespace Upp {
String MsSqlTextType(int width);

View file

@ -1,6 +1,8 @@
#ifndef __mysql_h__
#define __mysql_h__
// debian: sudo apt-get install libmysqlclient-dev
#ifndef flagNOMYSQL
#include <Sql/Sql.h>

View file

@ -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);

View file

@ -5,6 +5,8 @@
#include <sql.h>
#include <sqlext.h>
// debian: apt-get install unixodbc-dev
namespace Upp {
bool ODBCPerformScript(const String& text, StatementExecutor& executor, Gate2<int, int> progress_canceled = false);

View file

@ -10,6 +10,8 @@
#include <postgresql/libpq-fe.h>
#endif
// debian: sudo apt-get install libpq-dev
namespace Upp {
// Postgre -> Value types