mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-08 02:54:56 -06:00
SqlRaw support in OleDB
git-svn-id: svn://ultimatepp.org/upp/trunk@661 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
660ce4fe91
commit
de2191b220
8 changed files with 73 additions and 6 deletions
|
|
@ -51,7 +51,7 @@ int OidToType(Oid oid)
|
|||
case PGSQL_TIMESTAMPZOID:
|
||||
return TIME_V;
|
||||
case PGSQL_BYTEAOID:
|
||||
return BYTEA_V;
|
||||
return SQLRAW_V;
|
||||
}
|
||||
return STRING_V;
|
||||
}
|
||||
|
|
@ -357,7 +357,7 @@ void PostgreSQLConnection::SetParam(int i, const Value& r)
|
|||
p = "NULL";
|
||||
else
|
||||
switch(r.GetType()) {
|
||||
case BYTEA_V: {
|
||||
case SQLRAW_V: {
|
||||
String raw = SqlRaw(r);
|
||||
size_t rl;
|
||||
unsigned char *s = PQescapeByteaConn(conn, (const byte *)~raw, raw.GetLength(), &rl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue