Merge pull request #5 from denizzzka/master

small fix of types
This commit is contained in:
adamdruppe 2011-08-12 11:39:10 -07:00
commit 525de14ba2
1 changed files with 3 additions and 3 deletions

View File

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