mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@10333 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
99e5bccc97
commit
42d3e65fa5
5 changed files with 10 additions and 1 deletions
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include "ODBC/ODBC.h"
|
||||
|
||||
// debian: sudo apt-get install unixodbc-dev
|
||||
|
||||
namespace Upp {
|
||||
|
||||
String MsSqlTextType(int width);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef __mysql_h__
|
||||
#define __mysql_h__
|
||||
|
||||
// debian: sudo apt-get install libmysqlclient-dev
|
||||
|
||||
#ifndef flagNOMYSQL
|
||||
|
||||
#include <Sql/Sql.h>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
#include <postgresql/libpq-fe.h>
|
||||
#endif
|
||||
|
||||
// debian: sudo apt-get install libpq-dev
|
||||
|
||||
namespace Upp {
|
||||
|
||||
// Postgre -> Value types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue