Skip to content
Browse files

Fix RE of options in foreign tables

Report from Regina.
  • Loading branch information...
1 parent a448673 commit 57289a06f365aa89ee4232ca8a77b7374ca5f9cb @gleu committed Apr 17, 2012
Showing with 9 additions and 0 deletions.
  1. +1 −0 CHANGELOG
  2. +8 −0 pgadmin/schema/pgForeignTable.cpp
View
1 CHANGELOG
@@ -37,6 +37,7 @@ Changes
Date Dev Ver Change details
---------- --- ------ --------------
+2012-04-17 GL 1.14.3 Fix RE of options in foreign tables. Report from Regina.
2012-04-16 AV 1.14.3 Fix handling of parameter handling for edbspl functions
and package procedures/functions.
2012-04-10 AV 1.14.3 Fix server reconnect option when the browser becomes
View
8 pgadmin/schema/pgForeignTable.cpp
@@ -265,6 +265,14 @@ void pgForeignTable::iSetOptions(const wxString &tmpoptions)
{
// new options
+ if (currentChar == wxT("\"") && wrappedInQuotes && !antislash && !tmp.IsEmpty())
+ {
+ // In this specific case, the next character is the comma,
+ // but we don't want to start the next option with the comma
+ // so we skip it right now
+ index++;
+ }
+
// we need to grab option and value from tmp string
option = tmp.BeforeFirst('=');
value = tmp.AfterFirst('=');

0 comments on commit 57289a0

Please sign in to comment.
Something went wrong with that request. Please try again.