Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fbc057ad
Commit
fbc057ad
authored
Apr 09, 2017
by
Daniel Black
Committed by
Sergei Golubchik
May 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12420: add full list of pcre error messages
parent
d672f88e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+62
-0
No files found.
sql/item_cmpfunc.cc
View file @
fbc057ad
...
...
@@ -5193,15 +5193,77 @@ void Regexp_processor_pcre::pcre_exec_warn(int rc) const
*/
switch
(
rc
)
{
case
PCRE_ERROR_NULL
:
errmsg
=
"pcre_exec: null arguement passed"
;
break
;
case
PCRE_ERROR_BADOPTION
:
errmsg
=
"pcre_exec: bad option"
;
break
;
case
PCRE_ERROR_BADMAGIC
:
errmsg
=
"pcre_exec: bad magic - not a compiled regex"
;
break
;
case
PCRE_ERROR_UNKNOWN_OPCODE
:
errmsg
=
"pcre_exec: error in compiled regex"
;
break
;
case
PCRE_ERROR_NOMEMORY
:
errmsg
=
"pcre_exec: Out of memory"
;
break
;
case
PCRE_ERROR_NOSUBSTRING
:
errmsg
=
"pcre_exec: no substring"
;
break
;
case
PCRE_ERROR_MATCHLIMIT
:
errmsg
=
"pcre_exec: match limit exceeded"
;
break
;
case
PCRE_ERROR_CALLOUT
:
errmsg
=
"pcre_exec: callout error"
;
break
;
case
PCRE_ERROR_BADUTF8
:
errmsg
=
"pcre_exec: Invalid utf8 byte sequence in the subject string"
;
break
;
case
PCRE_ERROR_BADUTF8_OFFSET
:
errmsg
=
"pcre_exec: Started at invalid location within utf8 byte sequence"
;
break
;
case
PCRE_ERROR_PARTIAL
:
errmsg
=
"pcre_exec: partial match"
;
break
;
case
PCRE_ERROR_INTERNAL
:
errmsg
=
"pcre_exec: internal error"
;
break
;
case
PCRE_ERROR_BADCOUNT
:
errmsg
=
"pcre_exec: ovesize is negative"
;
break
;
case
PCRE_ERROR_RECURSIONLIMIT
:
my_snprintf
(
buf
,
sizeof
(
buf
),
"pcre_exec: recursion limit of %ld exceeded"
,
m_pcre_extra
.
match_limit_recursion
);
errmsg
=
buf
;
break
;
case
PCRE_ERROR_BADNEWLINE
:
errmsg
=
"pcre_exec: bad newline options"
;
break
;
case
PCRE_ERROR_BADOFFSET
:
errmsg
=
"pcre_exec: start offset negative or greater than string length"
;
break
;
case
PCRE_ERROR_SHORTUTF8
:
errmsg
=
"pcre_exec: ended in middle of utf8 sequence"
;
break
;
case
PCRE_ERROR_JIT_STACKLIMIT
:
errmsg
=
"pcre_exec: insufficient stack memory for JIT compile"
;
break
;
case
PCRE_ERROR_RECURSELOOP
:
errmsg
=
"pcre_exec: Recursion loop detected"
;
break
;
case
PCRE_ERROR_BADMODE
:
errmsg
=
"pcre_exec: compiled pattern passed to wrong bit library function"
;
break
;
case
PCRE_ERROR_BADENDIANNESS
:
errmsg
=
"pcre_exec: compiled pattern passed to wrong endianness processor"
;
break
;
case
PCRE_ERROR_JIT_BADOPTION
:
errmsg
=
"pcre_exec: bad jit option"
;
break
;
case
PCRE_ERROR_BADLENGTH
:
errmsg
=
"pcre_exec: negative length"
;
break
;
default:
/*
As other error codes should normally not happen,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment