diff --git a/statement.c b/statement.c
index 76c9ba7b..e2c4b14d 100644
--- a/statement.c
+++ b/statement.c
@@ -1317,7 +1317,8 @@ static const struct
 	{ STMT_COUNT_FIELD_INCORRECT, "07002", "07002" },
 	{ STMT_INVALID_NULL_ARG, "HY009", "S1009" },
 	{ STMT_NO_RESPONSE, "08S01", "08S01" },
-	{ STMT_COMMUNICATION_ERROR, "08S01", "08S01" }
+	{ STMT_COMMUNICATION_ERROR, "08S01", "08S01" },
+	{ STMT_STRING_CONVERSION_ERROR, "22018", "22018" } /* invalid character value for cast specification */
 };
 
 static PG_ErrorInfo *
