You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix for Bug#23204652, Bug#71929 (18346501) and Bug#103612 (32902019).
Fix for Bug#23204652, CURSOR POSITIONING API'S DOESNOT CHECK THE VALIDITY OF RESULTSET.
Fix for Bug#71929 (18346501), Prefixing query with double comments cancels query DML validation.
Fix for Bug#103612 (32902019), Incorrectly identified WITH...SELECT as unsafe for read-only connections.
* This program is distributed in the hope that it will be useful, but WITHOUT
21
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
22
+
* FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
23
+
* for more details.
24
+
*
25
+
* You should have received a copy of the GNU General Public License along with
26
+
* this program; if not, write to the Free Software Foundation, Inc.,
27
+
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
+
*/
29
+
30
+
packagecom.mysql.cj.util;
31
+
32
+
importjava.util.Collections;
33
+
importjava.util.EnumSet;
34
+
importjava.util.Set;
35
+
36
+
/**
37
+
* Search mode flags enumeration. Primarily used by {@link StringInspector}.
38
+
*/
39
+
publicenumSearchMode {
40
+
/**
41
+
* Allow backslash escapes.
42
+
*/
43
+
ALLOW_BACKSLASH_ESCAPE,
44
+
/**
45
+
* Skip between markers (quoted text, quoted identifiers, text between parentheses).
46
+
*/
47
+
SKIP_BETWEEN_MARKERS,
48
+
/**
49
+
* Skip between block comments ("/* text... *\/") but not between hint blocks.
50
+
*/
51
+
SKIP_BLOCK_COMMENTS,
52
+
/**
53
+
* Skip line comments ("-- text...", "# text...").
54
+
*/
55
+
SKIP_LINE_COMMENTS,
56
+
/**
57
+
* Skip MySQL specific markers ("/*![12345]" and "*\/") but not their contents.
58
+
*/
59
+
SKIP_MYSQL_MARKERS,
60
+
/**
61
+
* Skip hint blocks ("/*+ text... *\/").
62
+
*/
63
+
SKIP_HINT_BLOCKS,
64
+
/**
65
+
* Skip white space.
66
+
*/
67
+
SKIP_WHITE_SPACE,
68
+
/**
69
+
* Dummy search mode. Does nothing.
70
+
*/
71
+
VOID;
72
+
73
+
/*
74
+
* Convenience EnumSets for several SearchMode combinations
75
+
*/
76
+
77
+
/**
78
+
* Full search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip
79
+
* white space.
80
+
* This is technically equivalent to __BSE_MRK_COM_MYM_HNT_WS.
0 commit comments