From d5c0d7366d6be777d74372181b7979504e88fcdd Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 20 Apr 2016 18:21:39 +0200 Subject: [PATCH] Fix: Failed assertion in IdoPgsqlConnection::FieldToEscapedString fixes #11635 --- lib/db_ido_pgsql/idopgsqlconnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db_ido_pgsql/idopgsqlconnection.cpp b/lib/db_ido_pgsql/idopgsqlconnection.cpp index 9eae07c78..c1b7295b1 100644 --- a/lib/db_ido_pgsql/idopgsqlconnection.cpp +++ b/lib/db_ido_pgsql/idopgsqlconnection.cpp @@ -600,7 +600,8 @@ bool IdoPgsqlConnection::FieldToEscapedString(const String& key, const Value& va if (DbValue::IsObjectInsertID(value)) { dbrefcol = GetInsertID(dbobjcol); - ASSERT(dbrefcol.IsValid()); + if (!dbrefcol.IsValid()) + return false; } else { dbrefcol = GetObjectID(dbobjcol);