mirror of https://github.com/adamdruppe/arsd.git
commit
525de14ba2
|
@ -41,7 +41,7 @@ class PostgreSql : Database {
|
|||
|
||||
string escape(string sqlData) {
|
||||
char* buffer = (new char[sqlData.length * 2 + 1]).ptr;
|
||||
int size = PQescapeString (buffer, sqlData.ptr, sqlData.length);
|
||||
ulong size = PQescapeString (buffer, sqlData.ptr, sqlData.length);
|
||||
|
||||
string ret = assumeUnique(buffer[0..size]);
|
||||
|
||||
|
@ -167,8 +167,8 @@ string copyCString(const char* c, int actualLength = -1) {
|
|||
}
|
||||
|
||||
extern(C) {
|
||||
struct PGconn;
|
||||
struct PGresult;
|
||||
struct PGconn {};
|
||||
struct PGresult {};
|
||||
|
||||
void PQfinish(PGconn*);
|
||||
PGconn* PQconnectdb(const char*);
|
||||
|
|
Loading…
Reference in New Issue