From 389f8c65e293737e0a1e7841191df27bc0819825 Mon Sep 17 00:00:00 2001 From: denizzz Date: Sat, 13 Aug 2011 01:14:51 +0800 Subject: [PATCH] fix postgres.d(44): Error: cannot implicitly convert expression (PQescapeString(buffer,cast(const(char*))cast(immutable(char)*)sqlData,sqlData.length)) of type ulong to int --- postgres.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres.d b/postgres.d index 23f9820..5955ede 100644 --- a/postgres.d +++ b/postgres.d @@ -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]);