Changeset View
Changeset View
Standalone View
Standalone View
src/drivers/postgresql/PostgresqlConnection_p.cpp
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | { | 57 | { | ||
58 | QByteArray msg(PQerrorMessage(conn)); | 58 | QByteArray msg(PQerrorMessage(conn)); | ||
59 | if (msg.endsWith('\n')) { | 59 | if (msg.endsWith('\n')) { | ||
60 | msg.chop(1); | 60 | msg.chop(1); | ||
61 | } | 61 | } | ||
62 | result->setServerMessage(QString::fromLatin1(msg)); | 62 | result->setServerMessage(QString::fromLatin1(msg)); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | PGresult* PostgresqlConnectionInternal::executeSQL(const KDbEscapedString& sql) | 65 | PGresult* PostgresqlConnectionInternal::executeSql(const KDbEscapedString& sql) | ||
66 | { | 66 | { | ||
67 | //! @todo consider using binary mode with PQexecParams() | 67 | //! @todo consider using binary mode with PQexecParams() | ||
68 | return PQexec(conn, sql.toByteArray().constData()); | 68 | return PQexec(conn, sql.toByteArray().constData()); | ||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | //-------------------------------------- | 71 | //-------------------------------------- | ||
72 | 72 | | |||
73 | PostgresqlCursorData::PostgresqlCursorData(KDbConnection* connection) | 73 | PostgresqlCursorData::PostgresqlCursorData(KDbConnection* connection) | ||
Show All 35 Lines |