From 77d870df5d80363b8c97db912026cc18c676e36e Mon Sep 17 00:00:00 2001 From: Robert Schadek Date: Mon, 5 Aug 2019 10:23:39 +0100 Subject: [PATCH] Doc for Issue #142 --- src/dpq2/query.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dpq2/query.d b/src/dpq2/query.d index 1781df43..47bb6b7c 100644 --- a/src/dpq2/query.d +++ b/src/dpq2/query.d @@ -17,6 +17,10 @@ import std.exception: enforce; mixin template Queries() { /// Perform SQL query to DB + /// It uses the old wire protocol and all values are returned in textual + /// form. This means that the dpq2.conv.to_d_types.as template will likely + /// not work for anything but strings. + /// Try to used execParams instead, even if now parameters are present. immutable (Answer) exec( string SQLcmd ) { auto pgResult = PQexec(conn, toStringz( SQLcmd ));