All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huawei.opengauss.jdbc.core.Parser.class Maven / Gradle / Ivy

The newest version!
????4%com/huawei/opengauss/jdbc/core/Parserjava/lang/ObjectParser.java'com/huawei/opengauss/jdbc/core/Parser$13com/huawei/opengauss/jdbc/core/Parser$SqlParseState
SqlParseStateNO_BINDS[Ichars[CQUOTE_OR_ALPHABETIC_MARKER)QUOTE_OR_ALPHABETIC_MARKER_OR_PARENTHESISSINGLE_QUOTE()V
this'Lcom/huawei/opengauss/jdbc/core/Parser;parseJdbcSql;(Ljava/lang/String;ZZZZ[Ljava/lang/String;)Ljava/util/List;java/sql/SQLException<(Ljava/lang/String;ZZZZZ[Ljava/lang/String;)Ljava/util/List;
queryLjava/lang/String;standardConformingStringsZwithParameterssplitStatementsisBatchedReWriteConfiguredreturningColumnNames[Ljava/lang/String;startWithComment(Ljava/lang/String;)Z()
*removeFirstComment&(Ljava/lang/String;)Ljava/lang/String;,-
.\s+0java/lang/String2trim()Ljava/lang/String;45
36??8
replaceAll8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;:;
3<split'(Ljava/lang/String;)[Ljava/lang/String;>?
3@isContainSpecKeyword([Ljava/lang/String;)ZBC
D*com/huawei/opengauss/jdbc/core/NativeQueryF-com/huawei/opengauss/jdbc/core/SqlCommandTypeHBLANK/Lcom/huawei/opengauss/jdbc/core/SqlCommandType;JK	IL)com/huawei/opengauss/jdbc/core/SqlCommandNcreateStatementTypeInfo\(Lcom/huawei/opengauss/jdbc/core/SqlCommandType;)Lcom/huawei/opengauss/jdbc/core/SqlCommand;PQ
OR@(Ljava/lang/String;Lcom/huawei/opengauss/jdbc/core/SqlCommand;)VT
GUjava/util/CollectionsW
singletonList$(Ljava/lang/Object;)Ljava/util/List;YZ
X['???toCharArray()[C_`
3ajava/lang/StringBuilderclength()Ief
3g(I)Vi
djjava/util/Listmjava/lang/CharacteroisWhitespace(C)Zqr
psparseSingleQuotes([CIZ)Iuv
wparseDoubleQuotes([CI)Iyz
{parseLineComment}z
~parseBlockComment?z
?*?valueOf(C)Ljava/lang/String;??
3?equals(Ljava/lang/Object;)Z??
3?
? ?append([CII)Ljava/lang/StringBuilder;??
d?
dgaddReturning_(Ljava/lang/StringBuilder;Lcom/huawei/opengauss/jdbc/core/SqlCommandType;[Ljava/lang/String;Z)Z??
?java/util/ArrayList?
?size?fn?get(I)Ljava/lang/Object;??n?java/lang/Integer?intValue?f
??toString?5
d?
toIntArray(Ljava/util/List;)[I??
?a(Lcom/huawei/opengauss/jdbc/core/SqlCommandType;ZIIZI)Lcom/huawei/opengauss/jdbc/core/SqlCommand;P?
O?C(Ljava/lang/String;[IZLcom/huawei/opengauss/jdbc/core/SqlCommand;)V?
G?add??n?clear?n?	setLength?i
d?parseDollarQuotes?z
?(C)Ljava/lang/StringBuilder;??
d?(I)Ljava/lang/Integer;??
??bindName(I)Ljava/lang/String;??
G?-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
d?([CII)V?
3?java/util/Locale?ENGLISHLjava/util/Locale;??	??toUpperCase&(Ljava/util/Locale;)Ljava/lang/String;??
3?	isFuncEnd?)
?isSpace?r
?E?equalsIgnoreCase?)
3?N?D?G?I?isSpecialCharacters?r
?;?parseEnd(I[CI)[I??
?isIdentifierContChar?r
?isIdentifierStartChar?r
?parseUpdateKeyword([CI)Z??
UPDATEK	IparseDeleteKeyword?
DELETEK	I	parseMoveKeyword?
MOVEK	IparseSelectKeyword?
SELECTK	IparseWithKeyword?
WITHK	IparseInsertKeyword?
isEmpty()Z !n"INSERT$K	I%parseWithCommandType6([CIII)Lcom/huawei/opengauss/jdbc/core/SqlCommandType;'(
)parseReturningKeyword+?
,parseValuesKeyword.?
/	emptyList()Ljava/util/List;12
X3jtemp	bindIndexlastKeyWordcurrentCommandsTempcurrentCommandsArrresultcommand
wordLengthaCharC
isKeyWordChariisForceMultiCommandsnumOfOverSymblereg	queryTempqueryArrhaveSpecialKeyword
fragmentStartinParen
inBeginEndaChars	nativeSqlLjava/lang/StringBuilder;
bindPositions%Ljava/util/List;Ljava/util/List;
nativeQueries>Ljava/util/List;isCurrentReWriteCompatible
isValuesFoundvaluesBraceOpenPositionvaluesBraceClosePositionvaluesBraceCloseFoundisInsertPresentisReturningPresentisReturningPresentPrevcurrentCommandTypeprevCommandTypenumberOfStatementswhitespaceOnlykeyWordCountkeywordStart
keywordEnd	lastQuery,Lcom/huawei/opengauss/jdbc/core/NativeQuery;--e
startsWithg)
3h/*j*/lcontains(Ljava/lang/CharSequence;)Zno
3pstr
	sspecialChar[

]vindexOf(Ljava/lang/String;I)Ixy
3z	substring|?
3}(Ljava/lang/String;)Ix?
3?indexparseAsKeyword??
?nextCharnextInd
RETURNING ?charAt(I)C??
3?, ?$com/huawei/opengauss/jdbc/core/Utils?escapeIdentifierF(Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/StringBuilder;??
??
columnNamecol	?listrescharTerminatesIdentifier?r
?offsetEND?endsWith?)
3?PLPGSQL?SQL?	'PLPGSQL'?$?keywordBEGIN?DECLARE?hashCode?f
3?CREATE?TRIGGER?TABLE?PACKAGE?	PROCEDURE?FUNCTION?	firstWord	hasCreatehasTable
hasTriggerisDollarQuoteStartChar?r
?isDollarQuoteContChar?r
?subArraysEqual([CIII)Z??
?dtagIdxtagLenendIdxlevelisIfKeywordBf?
isLoopKeywordl?o?p?
isCaseKeywordc?a?s?e?	parseLong(Ljava/lang/String;II)J(II)Ljava/lang/String;|?
3?java/lang/Long?(Ljava/lang/String;)J??
??digitAt?y
?

beginIndexendIndexJ	isDigitAt(Ljava/lang/String;I)ZisDigit?r
p?posjava/lang/NumberFormatException
dInput string: "
", position: (I)Ljava/lang/StringBuilder;?	
d
(Ljava/lang/String;)V

isOperatorChar,()[].;:+-*/%^<>=~!@#&|`?(I)Ix
3isJavaIdentifierStartr
pisJavaIdentifierPartr
pr
arroffAoffBlenmodifyJdbcCallI(Ljava/lang/String;ZII)Lcom/huawei/opengauss/jdbc/core/JdbcCallParseInfo;call#java/lang/IllegalStateException%somehow got into bad state '
&
0com/huawei/opengauss/jdbc/core/JdbcCallParseInfo*(Ljava/lang/String;ZZ)V,
+-,com/huawei/opengauss/jdbc/util/PSQLException/$SwitchMap$com$huawei$opengauss$jdbc$core$Parser$SqlParseStatet	uordinalwf
	xUUnterminated dollar quote started at position {0} in SQL {1}. Expected terminating $$zcheckParsePosition(III[CLjava/lang/String;)V|}
~OUnterminated string literal started at position {0} in SQL {1}. Expected ' char?KUnterminated identifier started at position {0} in SQL {1}. Expected " char?SUnterminated block comment started at position {0} in SQL {1}. Expected */ sequence?
access$0008()[Lcom/huawei/opengauss/jdbc/core/Parser$SqlParseState;??
	?6[Lcom/huawei/opengauss/jdbc/core/Parser$SqlParseState;?
access$100;(Lcom/huawei/opengauss/jdbc/core/Parser$SqlParseState;[CI)I??
	?
access$200I(Lcom/huawei/opengauss/jdbc/core/Parser$SqlParseState;)Ljava/lang/String;??
	?escapeFunction ([CILjava/lang/StringBuilder;Z)I??
?i0availableStatematchedPositionavailableStatesstopOnCommanestedParenthesisendOfNested
findOpenBraceposArgs([C)V?
3?SYNTAX_ERROR?<	:?message?z
?escapeFunctionArguments2(Ljava/lang/StringBuilder;Ljava/lang/String;[CIZ)I??
?functionNameargPos-?/?$$???
???
???
?
tempOffsettempInBeginEnd+java/lang/reflect/InvocationTargetException? java/lang/IllegalAccessException?
?j0com/huawei/opengauss/jdbc/jdbc/EscapedFunctions2?getFunction.(Ljava/lang/String;)Ljava/lang/reflect/Method;??
??(?,?)?
appendCallb(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V??
??java/lang/reflect/Method?invoke9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;??
??getTargetException()Ljava/lang/Throwable;??
??java/lang/Throwable?
getMessage?5
??SYSTEM_ERROR?<	:?
??arglastPostargetExceptionLjava/lang/Throwable;-Ljava/lang/reflect/InvocationTargetException;"Ljava/lang/IllegalAccessException;
parsedArgs*Ljava/util/List;methodLjava/lang/reflect/Method;
access$300	?
access$400	?
access$500	?CodeLocalVariableTableLineNumberTable
Exceptions	Signaturei(Ljava/lang/String;ZZZZ[Ljava/lang/String;)Ljava/util/List;LocalVariableTypeTable
StackMapTablej(Ljava/lang/String;ZZZZZ[Ljava/lang/String;)Ljava/util/List;)(Ljava/util/List;)[I
SourceFileInnerClasses!
3?/*??????i
*???>
 
!"
#"
$"
%"
&'?2?????*	?6*?+?*?/K1:*?7:		9?=:		9?A:

?E6?$? ????GY*?M?S?V?\?66
^6*?b:?dY*?h
`?k:::66666666?M:?M:6666 6!6""???"46#6$#;?#?t??~6"6!#?"y$'l)0-?/?;??RB0E?b0e?"?x6"??"?|6"??"?6"??"6%"??6"%"???"?d??"`4???????"??"d4??????l??d??\"??"d4??????"d4???????
?*??"d??W6"`6???????6?y???Y??:?.?)?#?$??d???????	66^6?GY????????????W:6?M:6?c?
????66666??"6&"??6""&?+^?$6??
?
?????"`d6??"d??W"`??"`4?????W?"?D????W?5???Y??:???ǹ?W??6''?˶?W"`6????r?3Y"d?Ѷ79?=:''9?A:((?E?:((?d2?׶?:))?ޙ?"`??"`4??	?"???"`????"`4??????"`4????p?"`4????^"`6"?""??"4;?
"4/???"`??"`4??	?"???"`??"`4/??""`??`"`4/?T"`??"`4*????"?5"`???"`4/??"`??"`4*????"
?	??"d??W6"`6???????6?y???Y??:?.?)?#?$??d???????	66^6?GY????????????W:6?M:6?B?
????66666?"`??"d?
?"`4??????"`4??????"`4??????"`4?????"d4???"`4???^?6???"`??d"d?]?"`4????K?"`4????9"d4???"d4????"??:)).6").6 ?
#??6$?!#??6$$?"6 ?
?6 ?M"?d?$?>$?
"`?! d6%?M??%? ???:??%? ???
:??%? ?
??:??%? ???:??%? ???:?h%?a ??W?)?
?#???66?&:?,6?&??
?" %?*:&&?&:
?8#)??.%	? ?-?	6?%? ?0?66 ?#(?$?

?????"`d6?"??
?.?)?#?$??d???????	66????d??W?"?6?M:??6:??????4????6?GY????????
??????:"?	"?\??
"??W???/yz6?%?7?&?8?'?'9 )?8: '?/;'(?<)5	=K&V(>?%???@#??A"$??B?"	? 	?!"	?#"	?$"	?%"	?C"	?&'	?D?	?E 	?F 	-	qG'
4	jH"\	BI?_	?J?
c	;K?i	5Ly	%MN|	"OQ	RQ?	T"?	U"?	V??	W??	X"?	
Y"?	
Z"?	["?	\K??]K??^???_"??`???a? ??b?!	?cd"|	"OP	RS?*
JK
LNOP$Q-R4TGVOWUVYZ\[_\c^i`ya|bc?d?e?f?g?h?i?j?k?l?m?o?p?q?r?s?t?u?w?x?yP{Z|]f?i?r?u?y??????????????????????????
???"?(?0?>?A?E?J?S?n?????????????????????????????????????????????????????&?6?E?[?c?i?m?x?}????????????	?
???
?",GYbhk?????"?#?$?&?*+,!.$6)7.819@:C<I=Q>_?bBfCkDtG?I?J?K?M?N?O?S?P?N?V?W?X?Y?Z?\?]?_`abcdj%k@lRmdnto?p?q?r?t?z?|?}?~?????????????!?,?/?C?V?^?o?w?????????????????????
?
???(?5?:?>?M?^?d?u?x?{?~????????s????????????	?	?	?	?	?	?	!?	)?	7?	E?	H?	S?	t?	y?	??	??	??	??	??*[??I3]33]?Y#3]33]ldnnII?"%3]33]ldnnIIC?%3]33]ldnnII?t?)!/1? !2
#?D*3]33]ldnnII3]3?E..?/1?%3]33]ldnnII?|?SA?%$@"??'?/
Bn?"3]33]ldnnII	H	H35?"3]33]ldnnII	H	H35?"3]33]ldnnII
	H	H35I?"3]33]ldnnII	H	H35I?G??	()?{2*?7K*f?i?*?i??*k?i?*m?q????2r ?????.?0	?r?{#?tL+?=>?+46????????u@#?@?!
?	l?	,-?0?*?7L*?7K+w?AM,2?7f?i?',??*,2,2?h?{>*?~K?@?K?9+k?i? +m?q?*m??>*`?~K?+?i?	*?~K*?+?*?/K*??45??a???r ?F wG'?F
!'5;>EYaiu{ ?!?$?>3]&
'(????*???:?G?*???
:?1?*???&:??*???:??6*??>*46-?*?6? /?*??6??t??????`*??*???*`4??????p=K)=K?=KU=Kj/?@?L?B??a??>?Zh=K]e???b,-.$/,0:1B2P3X5Z9];d<j=q>|??@?A?C?;?H?I?J?K?M?I???

???%x?,???+?&?+??+?
?+???*???W,??,2??*?**??W?6,??#,2:?*???W*??W??????>\? O'??xMNx\Kx&'xZ"?>R	SU'Y)\1]C^J_LaVb\cadifpavh	"??3??
????>*?*?#????*???
L=*???+*??????O????+??  B?>?Q$?>?P?s
tvw&x6w<z
?
5??	uv???)?$*d4e?
*d4E?*d4???=?&?*??O*4?'?????*??,*4?#'!\????????*??? ?????!"?>?"?(?*?.?7?L?N?Q?Z?x?{?~?????
&
?)?v8*????+*????!*????*????
*???????8? ??"?7?2@
BC?Xn*2?׶?L+????
+?????=>66*??>*2??.*2?׶?:6??????c?????J???R???&t?C?cdВ??v???A????m6?g????\6?V????K6?E????:6?4????)6?#????6?¶??6?_)3?JPPP?4=?/?)6?#?>?????	????????>*BB?nG'
d? "L?"$J?"'G?"?Z?
?? ?"?$?'?1?8?;?0?5?:?@?F?L?Q?U?W?d?f?l?4?3?	]3?T3*	
??	yz?X?*??*4"?????????
??	?z?r?`*????*d4????=*`4$?
`=?7*`4?ə,`>*??"*4$?=?*4?̚?	?????:>d`69%??d5??k.??????????b

#*5?GILUX^bdkmv? ?!?"??'	????"?	}z??2`*??+*`4-?!`*???*4
?*4
?????22???3456-70;	?z??p`*??i*`4*?_=?*??T*d4?<*/+*4/?????*4*?????	???	?????? Z??pp???>GIJK<MDNGOMSUTXU^\b]e^hJnb
?$	?	???]*?`??*4 ?d?H*`4 ?e?;*`4 ?l?.*`4 ?e?!*`4 ?t?*`4 ?e????]]???n	or?O@	???]*?`??*4 ?i?H*`4 ?n?;*`4 ?s?.*`4 ?e?!*`4 ?r?*`4 ?t????]]????	???O@	???B*?`??*4 ?m?.*`4 ?o?!*`4 ?v?*`4 ?e????BB?????
?
5@	+????*?	`??*4 ?r?r*`4 ?e?e*`4 ?t?X*`4 ?u?K*`4 ?r?>*`4 ?n?1*`4 ?i?#*`4 ?n?*`4 ?g??????????	???y@	???]*?`??*4 ?s?H*`4 ?e?;*`4 ?l?.*`4 ?e?!*`4 ?c?*`4 ?t????]]????	???O@	????]*?`??*4 ?u?H*`4 ?p?;*`4 ?d?.*`4 ?a?!*`4 ?t?*`4 ?e????]]????	???O@	.???]*?`??*4 ?v?H*`4 ?a?;*`4 ?l?.*`4 ?u?!*`4 ?e?*`4 ?s????]]????	???O@	????K*?`???*4????3?*`4????"?*`4????*`4?????KK?????
?!1?J?
:@	????m*?`??*`4????*`4????*4????:?*`4????)?*`4?????*`4???????mm???&	
#%<M^l	#?E@	????m*?`??*`4????*`4????*4????:?*`4????)?*`4?????*`4???????mm???&	!"##$%'<(M)^*l'	#?E@	????6d?
*???*???B??!?i*???aB????!??*6? 6??6?????78:;!<.;4>?		???B*?`??*4 ?w?.*`4 ?i?!*`4 ?t?*`4 ?h????BB???IJ
M
5@	???p(*?`??*4 ?a?*`4 ?s????((???[\
_
@	???\?*?h?*???????? ??j@	?y??;*??0d=?		?)?Y?dY???*??????????? ;? ;?	2???u	vw9y?%	?r?Z$ ?	?
?
?	????$?@??@	r?F??????@??@	?r?/????@??	?r?/????@??	?r?P"???
??????@??@	?r?H$????????@??@	?r?H$????????@??@
????H?#?*??*??`*??`*???6?*`4*`4????????4)B?HH?H?H ???$?&?/?>?@?F?$??	!"?-t*:666*?h66	6
666
66??*??6	??/T???+F?{???	???t?	???6????Y666??	??c?
C?	?	???t?	??t6?n=???	?^?t?	??P6?Jc?
C?	?	?6?t?	??(6?"c?
C?+`?"*`??$??6??	???t?	???6???t???	6??6??'?
??6
???
?\?
?	???
?{???6??p
?"}??6
??	?R6?L
?;?	6?:??4?t?	??&6? ?&Y?dY?(??	????)?????%? 	??+Y?.?	?6? ?0Y2?Y??S?8?>?A?C:E:*
??:?h6?dY*?h`?h`
`?k:??W??W(?`6??	G?I??W?g?b6`6???*?J6)???t?	6?	?????`L?PW?`R?PW?ζ?:?+Y?.??;S@?@16??\T"tU tV"tW?tX?qY nZ"	k["h\"b ?_]?	\^"
Y_"V`?!S??
$Pa"'MB???b ??c ??? ??d???eN??f???v		

!$'3;lsv|????"?#?%?&?'?(?)?*?+?.?0?3?4?5?6?7?9?;?>?
@ACEHBIHJKKNLTM\NbPeRhUpWsXvY}[?]?`?a?b?c?e?f?g?h?i?j?l?m?n?p?rsv	x{|~? ?=?@?L?R?_?f?i?n?}??????????????????????????????"?*?-?0?6?;?L?Z?f??2?'33?D






'
@@
?	!?`33333dd?33333dd3???
??
?	gh?	N?K*?h>*?b:?dY?k:6?'?l6???4??W???????*??H	C ?=
3mN0B?Nn No"N!"?2??	????"?/?5?@?F?L?#?3ld)?3?
ij?6??s:*?666??????*46	?v?y.??*??????	$?)6
*??<
*{?,*

d`??W?s	'?+6
*?x<
*??,*

d`??W?D	"?)6
*?|<
*??,*

d`??W?	/?)6
*??<
*??,*

d`??W??	-?6
*?<,*

d`??W??	(?	???	)????|6???	,??	6??	{?Y`?Q??:
6
??A
2:*`??6

??!
`<???
,????W:?:????,	??W?**,?????@?B?C?D?F?G?<?K?L?P?Q?R?X?Y?[?_?`@?	ld	?E,.,, ???!	??	??
?z?g=*??*4(?	?????? nB????
eh?
|}??	,???0Y?Y??SY?3Y-??S?8???A??4,B?, ?,??,n,? ?noqr?0
????P*??6*??$?3Y*d?Ѷ7:`<,*?? ? PnPB?PmNPV"I???&	xyz |%}/?2?@?N?	?/?
???3>6`>+???+4??	?????+4?????6+?>??????+4?????26+??6?`>???^?6????????+4?????/`+??:??dY?+4????+`4?Ķ????^?6??????d?3+d4??(+??? +???+???^?6??????
YOYO??H07?T)7???K???????'???	????-?0?6?<???Q?T?\?b?j?m?t?w?z?}??????????????????????????????	??	 ?'?9	2
???	???Y??:?dY?:6,?l>?
??W,??,4,??	????+??:?*+??W*???????Y*SYS??W?<:??:??	???0Y???A?:?0Y???A??j~??j~???z2?N/??????%??????mN?? ?n?B??V"
??QNn??
????f?
???!?'?1???B?E?H?N?S?Y?h?j?~?????????????????B	?
n?&d??!?V?????d3ln????`?????`??????`???????yQ?
???Y UY
UY
UY	U?t?Y"UY0U???Y"UY0UY(U???Y'U??? ?0?E?	
@




© 2015 - 2024 Weber Informatics LLC | Privacy Policy