mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 06:05:49 -06:00
Fix changes in the PCRE (wxRegEx template)
Были проблемы при выполнении pgScript.
This commit is contained in:
parent
d5388d72d7
commit
06c0c71bc3
2 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ pgsOperand pgsExecute::eval(pgsVarMap &vars) const
|
|||
wxString stmt(m_query);
|
||||
|
||||
// Build regular expressions
|
||||
wxRegEx identifier(wxT("([^\\])(@[a-zA-Z0-9_#@]+)"));
|
||||
wxRegEx identifier(wxT("([^\\\\])(@[a-zA-Z0-9_#@]+)"));
|
||||
wxRegEx escaped(wxT("\\\\(@|\\\\)")); // Backslash followed by @ or backslash
|
||||
wxASSERT(identifier.IsValid() && escaped.IsValid());
|
||||
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ pgsRecord pgsString::record() const
|
|||
|
||||
// Try to find the representation of a record in the string
|
||||
{
|
||||
wxString element(wxT("(\"([^\"\\\\]|\\\\.)*\")|((-|[a-zA-Z0-9\\+\\.])+)"));
|
||||
wxString element(wxT("(\"([^\"\\\\\\\\]|\\\\.)*\")|((-|[a-zA-Z0-9\\+\\.])+)"));
|
||||
wxString data(m_data);
|
||||
wxRegEx regex1(wxString() << wxT("^[[:space:]]*\\([[:space:]]*(")
|
||||
<< element << wxT(")[[:space:]]*([,][[:space:]]*(")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue