SqlRaw support in OleDB

git-svn-id: svn://ultimatepp.org/upp/trunk@661 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2008-11-21 20:09:31 +00:00
parent 660ce4fe91
commit de2191b220
8 changed files with 73 additions and 6 deletions

View file

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