Skip to content

Commit

Permalink
EMPTY_QUERY is added
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Feb 4, 2016
1 parent 1a3f02c commit 6b729a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dpq2/answer.d
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down Expand Up @@ -482,6 +486,7 @@ enum ExceptionType
NOT_NATIVE, /// Format isn't matches D native type
SMALL_DIMENSIONS_NUM,
SIZE_MISMATCH,
EMPTY_QUERY,
FATAL_ERROR
}

Expand Down

0 comments on commit 6b729a3

Please sign in to comment.