From 6b729a3fcf14c2238503beba6742f3563687af07 Mon Sep 17 00:00:00 2001 From: Denis Feklushkin Date: Fri, 5 Feb 2016 02:35:19 +0700 Subject: [PATCH] EMPTY_QUERY is added --- src/dpq2/answer.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dpq2/answer.d b/src/dpq2/answer.d index d6baee10..7d8e9283 100644 --- a/src/dpq2/answer.d +++ b/src/dpq2/answer.d @@ -57,6 +57,10 @@ class Answer case PGRES_TUPLES_OK: break; + case PGRES_EMPTY_QUERY: + throw new AnswerException(ExceptionType.EMPTY_QUERY, + "Empty query", __FILE__, __LINE__); + case PGRES_FATAL_ERROR: throw new AnswerException(ExceptionType.FATAL_ERROR, resultErrorMessage, __FILE__, __LINE__); @@ -482,6 +486,7 @@ enum ExceptionType NOT_NATIVE, /// Format isn't matches D native type SMALL_DIMENSIONS_NUM, SIZE_MISMATCH, + EMPTY_QUERY, FATAL_ERROR }