stdlib.go 104 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660
  1. package dolphin
  2. import (
  3. "github.com/kyleconroy/sqlc/internal/sql/ast"
  4. "github.com/kyleconroy/sqlc/internal/sql/catalog"
  5. )
  6. func defaultSchema(name string) *catalog.Schema {
  7. s := &catalog.Schema{Name: name}
  8. s.Funcs = []*catalog.Function{
  9. {
  10. Name: "ABS",
  11. Args: []*catalog.Argument{
  12. {
  13. Type: &ast.TypeName{Name: "tinyint"},
  14. },
  15. },
  16. ReturnType: &ast.TypeName{Name: "tinyint"},
  17. },
  18. {
  19. Name: "ABS",
  20. Args: []*catalog.Argument{
  21. {
  22. Type: &ast.TypeName{Name: "smallint"},
  23. },
  24. },
  25. ReturnType: &ast.TypeName{Name: "smallint"},
  26. },
  27. {
  28. Name: "ABS",
  29. Args: []*catalog.Argument{
  30. {
  31. Type: &ast.TypeName{Name: "mediumint"},
  32. },
  33. },
  34. ReturnType: &ast.TypeName{Name: "mediumint"},
  35. },
  36. {
  37. Name: "ABS",
  38. Args: []*catalog.Argument{
  39. {
  40. Type: &ast.TypeName{Name: "int"},
  41. },
  42. },
  43. ReturnType: &ast.TypeName{Name: "int"},
  44. },
  45. {
  46. Name: "ABS",
  47. Args: []*catalog.Argument{
  48. {
  49. Type: &ast.TypeName{Name: "bigint"},
  50. },
  51. },
  52. ReturnType: &ast.TypeName{Name: "bigint"},
  53. },
  54. {
  55. Name: "ABS",
  56. Args: []*catalog.Argument{
  57. {
  58. Type: &ast.TypeName{Name: "double"},
  59. },
  60. },
  61. ReturnType: &ast.TypeName{Name: "double"},
  62. },
  63. {
  64. Name: "ABS",
  65. Args: []*catalog.Argument{
  66. {
  67. Type: &ast.TypeName{Name: "double precision"},
  68. },
  69. },
  70. ReturnType: &ast.TypeName{Name: "double precision"},
  71. },
  72. {
  73. Name: "ACOS",
  74. Args: []*catalog.Argument{
  75. {
  76. Type: &ast.TypeName{Name: "double precision"},
  77. },
  78. },
  79. ReturnType: &ast.TypeName{Name: "double precision"},
  80. },
  81. {
  82. Name: "ADDDATE",
  83. Args: []*catalog.Argument{
  84. {
  85. Type: &ast.TypeName{Name: "date"},
  86. },
  87. {
  88. Type: &ast.TypeName{Name: "int"},
  89. },
  90. },
  91. ReturnType: &ast.TypeName{Name: "date"},
  92. },
  93. {
  94. Name: "ADDTIME",
  95. Args: []*catalog.Argument{
  96. {
  97. Type: &ast.TypeName{Name: "time"},
  98. },
  99. {
  100. Type: &ast.TypeName{Name: "time"},
  101. },
  102. },
  103. ReturnType: &ast.TypeName{Name: "time"},
  104. },
  105. {
  106. Name: "AES_DECRYPT",
  107. Args: []*catalog.Argument{
  108. {
  109. Type: &ast.TypeName{Name: "binary"},
  110. },
  111. {
  112. Type: &ast.TypeName{Name: "text"},
  113. },
  114. },
  115. ReturnType: &ast.TypeName{Name: "text"},
  116. },
  117. {
  118. Name: "AES_DECRYPT",
  119. Args: []*catalog.Argument{
  120. {
  121. Type: &ast.TypeName{Name: "binary"},
  122. },
  123. {
  124. Type: &ast.TypeName{Name: "text"},
  125. },
  126. {
  127. Type: &ast.TypeName{Name: "binary"},
  128. },
  129. },
  130. ReturnType: &ast.TypeName{Name: "text"},
  131. },
  132. {
  133. Name: "AES_ENCRYPT",
  134. Args: []*catalog.Argument{
  135. {
  136. Type: &ast.TypeName{Name: "text"},
  137. },
  138. {
  139. Type: &ast.TypeName{Name: "text"},
  140. },
  141. },
  142. ReturnType: &ast.TypeName{Name: "binary"},
  143. },
  144. {
  145. Name: "AES_ENCRYPT",
  146. Args: []*catalog.Argument{
  147. {
  148. Type: &ast.TypeName{Name: "text"},
  149. },
  150. {
  151. Type: &ast.TypeName{Name: "text"},
  152. },
  153. {
  154. Type: &ast.TypeName{Name: "binary"},
  155. },
  156. },
  157. ReturnType: &ast.TypeName{Name: "binary"},
  158. },
  159. {
  160. Name: "ANY_VALUE",
  161. Args: []*catalog.Argument{
  162. {
  163. Type: &ast.TypeName{Name: "any"},
  164. },
  165. },
  166. ReturnType: &ast.TypeName{Name: "any"},
  167. },
  168. {
  169. Name: "ASCII",
  170. Args: []*catalog.Argument{
  171. {
  172. Type: &ast.TypeName{Name: "text"},
  173. },
  174. },
  175. ReturnType: &ast.TypeName{Name: "int"},
  176. },
  177. {
  178. Name: "ASIN",
  179. Args: []*catalog.Argument{
  180. {
  181. Type: &ast.TypeName{Name: "double precision"},
  182. },
  183. },
  184. ReturnType: &ast.TypeName{Name: "double precision"},
  185. },
  186. {
  187. Name: "ATAN",
  188. Args: []*catalog.Argument{
  189. {
  190. Type: &ast.TypeName{Name: "double precision"},
  191. },
  192. },
  193. ReturnType: &ast.TypeName{Name: "double precision"},
  194. },
  195. {
  196. Name: "ATAN2",
  197. Args: []*catalog.Argument{
  198. {
  199. Type: &ast.TypeName{Name: "double precision"},
  200. },
  201. },
  202. ReturnType: &ast.TypeName{Name: "double precision"},
  203. },
  204. {
  205. Name: "AVG",
  206. Args: []*catalog.Argument{
  207. {
  208. Type: &ast.TypeName{Name: "any"},
  209. },
  210. },
  211. ReturnType: &ast.TypeName{Name: "any"},
  212. },
  213. {
  214. Name: "BENCHMARK",
  215. Args: []*catalog.Argument{
  216. {
  217. Type: &ast.TypeName{Name: "int"},
  218. },
  219. {
  220. Type: &ast.TypeName{Name: "any"},
  221. },
  222. },
  223. ReturnType: &ast.TypeName{Name: "int"},
  224. },
  225. {
  226. Name: "BIN",
  227. Args: []*catalog.Argument{
  228. {
  229. Type: &ast.TypeName{Name: "int"},
  230. },
  231. },
  232. ReturnType: &ast.TypeName{Name: "text"},
  233. },
  234. {
  235. Name: "BIN_TO_UUID",
  236. Args: []*catalog.Argument{
  237. {
  238. Type: &ast.TypeName{Name: "binary"},
  239. },
  240. },
  241. ReturnType: &ast.TypeName{Name: "text"},
  242. },
  243. {
  244. Name: "BIN_TO_UUID",
  245. Args: []*catalog.Argument{
  246. {
  247. Type: &ast.TypeName{Name: "binary"},
  248. },
  249. {
  250. Type: &ast.TypeName{Name: "tinyint"},
  251. },
  252. },
  253. ReturnType: &ast.TypeName{Name: "text"},
  254. },
  255. {
  256. Name: "BIT_AND",
  257. Args: []*catalog.Argument{
  258. {
  259. Type: &ast.TypeName{Name: "any"},
  260. },
  261. },
  262. ReturnType: &ast.TypeName{Name: "any"},
  263. },
  264. {
  265. Name: "BIT_COUNT",
  266. Args: []*catalog.Argument{
  267. {
  268. Type: &ast.TypeName{Name: "bigint"},
  269. },
  270. },
  271. ReturnType: &ast.TypeName{Name: "bigint"},
  272. },
  273. {
  274. Name: "BIT_LENGTH",
  275. Args: []*catalog.Argument{
  276. {
  277. Type: &ast.TypeName{Name: "text"},
  278. },
  279. },
  280. ReturnType: &ast.TypeName{Name: "int"},
  281. },
  282. {
  283. Name: "BIT_OR",
  284. Args: []*catalog.Argument{
  285. {
  286. Type: &ast.TypeName{Name: "any"},
  287. },
  288. },
  289. ReturnType: &ast.TypeName{Name: "any"},
  290. },
  291. {
  292. Name: "BIT_XOR",
  293. Args: []*catalog.Argument{
  294. {
  295. Type: &ast.TypeName{Name: "any"},
  296. },
  297. },
  298. ReturnType: &ast.TypeName{Name: "any"},
  299. },
  300. {
  301. Name: "CAST",
  302. Args: []*catalog.Argument{
  303. {
  304. Type: &ast.TypeName{Name: "any"},
  305. },
  306. },
  307. ReturnType: &ast.TypeName{Name: "any"},
  308. },
  309. {
  310. Name: "CEIL",
  311. Args: []*catalog.Argument{
  312. {
  313. Type: &ast.TypeName{Name: "int"},
  314. },
  315. },
  316. ReturnType: &ast.TypeName{Name: "int"},
  317. },
  318. {
  319. Name: "CEIL",
  320. Args: []*catalog.Argument{
  321. {
  322. Type: &ast.TypeName{Name: "double precision"},
  323. },
  324. },
  325. ReturnType: &ast.TypeName{Name: "double precision"},
  326. },
  327. {
  328. Name: "CEILING",
  329. Args: []*catalog.Argument{
  330. {
  331. Type: &ast.TypeName{Name: "int"},
  332. },
  333. },
  334. ReturnType: &ast.TypeName{Name: "int"},
  335. },
  336. {
  337. Name: "CEILING",
  338. Args: []*catalog.Argument{
  339. {
  340. Type: &ast.TypeName{Name: "double precision"},
  341. },
  342. },
  343. ReturnType: &ast.TypeName{Name: "double precision"},
  344. },
  345. {
  346. Name: "CHAR",
  347. Args: []*catalog.Argument{
  348. {
  349. Type: &ast.TypeName{Name: "int"},
  350. },
  351. {
  352. Type: &ast.TypeName{Name: "int"},
  353. Mode: ast.FuncParamVariadic,
  354. },
  355. },
  356. ReturnType: &ast.TypeName{Name: "text"},
  357. },
  358. {
  359. Name: "CHARACTER_LENGTH",
  360. Args: []*catalog.Argument{
  361. {
  362. Type: &ast.TypeName{Name: "text"},
  363. },
  364. },
  365. ReturnType: &ast.TypeName{Name: "int"},
  366. },
  367. {
  368. Name: "CHARSET",
  369. Args: []*catalog.Argument{
  370. {
  371. Type: &ast.TypeName{Name: "text"},
  372. },
  373. },
  374. ReturnType: &ast.TypeName{Name: "text"},
  375. },
  376. {
  377. Name: "CHAR_LENGTH",
  378. Args: []*catalog.Argument{
  379. {
  380. Type: &ast.TypeName{Name: "text"},
  381. },
  382. },
  383. ReturnType: &ast.TypeName{Name: "int"},
  384. },
  385. {
  386. Name: "COERCIBILITY",
  387. Args: []*catalog.Argument{
  388. {
  389. Type: &ast.TypeName{Name: "text"},
  390. },
  391. },
  392. ReturnType: &ast.TypeName{Name: "int"},
  393. },
  394. {
  395. Name: "COLLATION",
  396. Args: []*catalog.Argument{
  397. {
  398. Type: &ast.TypeName{Name: "text"},
  399. },
  400. },
  401. ReturnType: &ast.TypeName{Name: "text"},
  402. },
  403. {
  404. Name: "COMPRESS",
  405. Args: []*catalog.Argument{
  406. {
  407. Type: &ast.TypeName{Name: "text"},
  408. },
  409. },
  410. ReturnType: &ast.TypeName{Name: "binary"},
  411. },
  412. {
  413. Name: "CONCAT",
  414. Args: []*catalog.Argument{
  415. {
  416. Type: &ast.TypeName{Name: "any"},
  417. },
  418. {
  419. Type: &ast.TypeName{Name: "any"},
  420. Mode: ast.FuncParamVariadic,
  421. },
  422. },
  423. ReturnType: &ast.TypeName{Name: "text"},
  424. },
  425. {
  426. Name: "CONCAT_WS",
  427. Args: []*catalog.Argument{
  428. {
  429. Type: &ast.TypeName{Name: "text"},
  430. },
  431. {
  432. Type: &ast.TypeName{Name: "any"},
  433. },
  434. {
  435. Type: &ast.TypeName{Name: "any"},
  436. Mode: ast.FuncParamVariadic,
  437. },
  438. },
  439. ReturnType: &ast.TypeName{Name: "text"},
  440. },
  441. {
  442. Name: "CONNECTION_ID",
  443. Args: []*catalog.Argument{},
  444. ReturnType: &ast.TypeName{Name: "int"},
  445. },
  446. {
  447. Name: "CONV",
  448. Args: []*catalog.Argument{
  449. {
  450. Type: &ast.TypeName{Name: "int"},
  451. },
  452. {
  453. Type: &ast.TypeName{Name: "int"},
  454. },
  455. {
  456. Type: &ast.TypeName{Name: "int"},
  457. },
  458. },
  459. ReturnType: &ast.TypeName{Name: "text"},
  460. },
  461. {
  462. Name: "CONVERT",
  463. Args: []*catalog.Argument{
  464. {
  465. Type: &ast.TypeName{Name: "any"},
  466. },
  467. {
  468. Type: &ast.TypeName{Name: "any"},
  469. },
  470. },
  471. ReturnType: &ast.TypeName{Name: "any"},
  472. },
  473. {
  474. Name: "CONVERT_TZ",
  475. Args: []*catalog.Argument{
  476. {
  477. Type: &ast.TypeName{Name: "datetime"},
  478. },
  479. {
  480. Type: &ast.TypeName{Name: "text"},
  481. },
  482. {
  483. Type: &ast.TypeName{Name: "text"},
  484. },
  485. },
  486. ReturnType: &ast.TypeName{Name: "datetime"},
  487. },
  488. {
  489. Name: "COS",
  490. Args: []*catalog.Argument{
  491. {
  492. Type: &ast.TypeName{Name: "double precision"},
  493. },
  494. },
  495. ReturnType: &ast.TypeName{Name: "double precision"},
  496. },
  497. {
  498. Name: "COT",
  499. Args: []*catalog.Argument{
  500. {
  501. Type: &ast.TypeName{Name: "double precision"},
  502. },
  503. },
  504. ReturnType: &ast.TypeName{Name: "double precision"},
  505. },
  506. {
  507. Name: "COUNT",
  508. Args: []*catalog.Argument{},
  509. ReturnType: &ast.TypeName{Name: "bigint"},
  510. },
  511. {
  512. Name: "COUNT",
  513. Args: []*catalog.Argument{
  514. {
  515. Type: &ast.TypeName{Name: "any"},
  516. },
  517. },
  518. ReturnType: &ast.TypeName{Name: "bigint"},
  519. },
  520. {
  521. Name: "CRC32",
  522. Args: []*catalog.Argument{
  523. {
  524. Type: &ast.TypeName{Name: "text"},
  525. },
  526. },
  527. ReturnType: &ast.TypeName{Name: "int"},
  528. },
  529. {
  530. Name: "CUME_DIST",
  531. Args: []*catalog.Argument{},
  532. ReturnType: &ast.TypeName{Name: "double precision"},
  533. },
  534. {
  535. Name: "CURDATE",
  536. Args: []*catalog.Argument{},
  537. ReturnType: &ast.TypeName{Name: "date"},
  538. },
  539. {
  540. Name: "CURRENT_DATE",
  541. Args: []*catalog.Argument{},
  542. ReturnType: &ast.TypeName{Name: "date"},
  543. },
  544. {
  545. Name: "CURRENT_ROLE",
  546. Args: []*catalog.Argument{},
  547. ReturnType: &ast.TypeName{Name: "text"},
  548. },
  549. {
  550. Name: "CURRENT_TIME",
  551. Args: []*catalog.Argument{},
  552. ReturnType: &ast.TypeName{Name: "time"},
  553. },
  554. {
  555. Name: "CURRENT_TIME",
  556. Args: []*catalog.Argument{
  557. {
  558. Type: &ast.TypeName{Name: "int"},
  559. },
  560. },
  561. ReturnType: &ast.TypeName{Name: "time"},
  562. },
  563. {
  564. Name: "CURRENT_TIMESTAMP",
  565. Args: []*catalog.Argument{},
  566. ReturnType: &ast.TypeName{Name: "datetime"},
  567. },
  568. {
  569. Name: "CURRENT_TIMESTAMP",
  570. Args: []*catalog.Argument{
  571. {
  572. Type: &ast.TypeName{Name: "int"},
  573. },
  574. },
  575. ReturnType: &ast.TypeName{Name: "datetime"},
  576. },
  577. {
  578. Name: "CURRENT_USER",
  579. Args: []*catalog.Argument{},
  580. ReturnType: &ast.TypeName{Name: "text"},
  581. },
  582. {
  583. Name: "CURTIME",
  584. Args: []*catalog.Argument{},
  585. ReturnType: &ast.TypeName{Name: "time"},
  586. },
  587. {
  588. Name: "CURTIME",
  589. Args: []*catalog.Argument{
  590. {
  591. Type: &ast.TypeName{Name: "int"},
  592. },
  593. },
  594. ReturnType: &ast.TypeName{Name: "time"},
  595. },
  596. {
  597. Name: "DATABASE",
  598. Args: []*catalog.Argument{},
  599. ReturnType: &ast.TypeName{Name: "text"},
  600. },
  601. {
  602. Name: "DATE",
  603. Args: []*catalog.Argument{
  604. {
  605. Type: &ast.TypeName{Name: "datetime"},
  606. },
  607. },
  608. ReturnType: &ast.TypeName{Name: "date"},
  609. },
  610. {
  611. Name: "DATEDIFF",
  612. Args: []*catalog.Argument{
  613. {
  614. Type: &ast.TypeName{Name: "datetime"},
  615. },
  616. {
  617. Type: &ast.TypeName{Name: "datetime"},
  618. },
  619. },
  620. ReturnType: &ast.TypeName{Name: "int"},
  621. },
  622. {
  623. Name: "DATE_ADD",
  624. Args: []*catalog.Argument{
  625. {
  626. Type: &ast.TypeName{Name: "date"},
  627. },
  628. {
  629. Type: &ast.TypeName{Name: "any"},
  630. },
  631. {
  632. Type: &ast.TypeName{Name: "any"},
  633. },
  634. },
  635. ReturnType: &ast.TypeName{Name: "date"},
  636. },
  637. {
  638. Name: "DATE_ADD_INTERVAL",
  639. Args: []*catalog.Argument{
  640. {
  641. Type: &ast.TypeName{Name: "date"},
  642. },
  643. {
  644. Type: &ast.TypeName{Name: "any"},
  645. },
  646. },
  647. ReturnType: &ast.TypeName{Name: "date"},
  648. },
  649. {
  650. Name: "DATE_FORMAT",
  651. Args: []*catalog.Argument{
  652. {
  653. Type: &ast.TypeName{Name: "date"},
  654. },
  655. {
  656. Type: &ast.TypeName{Name: "text"},
  657. },
  658. },
  659. ReturnType: &ast.TypeName{Name: "text"},
  660. },
  661. {
  662. Name: "DATE_SUB",
  663. Args: []*catalog.Argument{
  664. {
  665. Type: &ast.TypeName{Name: "date"},
  666. },
  667. {
  668. Type: &ast.TypeName{Name: "any"},
  669. },
  670. {
  671. Type: &ast.TypeName{Name: "any"},
  672. },
  673. },
  674. ReturnType: &ast.TypeName{Name: "date"},
  675. },
  676. {
  677. Name: "DATE_SUB_INTERVAL",
  678. Args: []*catalog.Argument{
  679. {
  680. Type: &ast.TypeName{Name: "date"},
  681. },
  682. {
  683. Type: &ast.TypeName{Name: "any"},
  684. },
  685. },
  686. ReturnType: &ast.TypeName{Name: "date"},
  687. },
  688. {
  689. Name: "DAY",
  690. Args: []*catalog.Argument{
  691. {
  692. Type: &ast.TypeName{Name: "date"},
  693. },
  694. },
  695. ReturnType: &ast.TypeName{Name: "int"},
  696. },
  697. {
  698. Name: "DAYNAME",
  699. Args: []*catalog.Argument{
  700. {
  701. Type: &ast.TypeName{Name: "date"},
  702. },
  703. },
  704. ReturnType: &ast.TypeName{Name: "text"},
  705. },
  706. {
  707. Name: "DAYOFMONTH",
  708. Args: []*catalog.Argument{
  709. {
  710. Type: &ast.TypeName{Name: "date"},
  711. },
  712. },
  713. ReturnType: &ast.TypeName{Name: "int"},
  714. },
  715. {
  716. Name: "DAYOFWEEK",
  717. Args: []*catalog.Argument{
  718. {
  719. Type: &ast.TypeName{Name: "date"},
  720. },
  721. },
  722. ReturnType: &ast.TypeName{Name: "int"},
  723. },
  724. {
  725. Name: "DAYOFYEAR",
  726. Args: []*catalog.Argument{
  727. {
  728. Type: &ast.TypeName{Name: "date"},
  729. },
  730. },
  731. ReturnType: &ast.TypeName{Name: "int"},
  732. },
  733. {
  734. Name: "DEFAULT",
  735. Args: []*catalog.Argument{
  736. {
  737. Type: &ast.TypeName{Name: "any"},
  738. },
  739. },
  740. ReturnType: &ast.TypeName{Name: "any"},
  741. },
  742. {
  743. Name: "DEGREES",
  744. Args: []*catalog.Argument{
  745. {
  746. Type: &ast.TypeName{Name: "double precision"},
  747. },
  748. },
  749. ReturnType: &ast.TypeName{Name: "int"},
  750. },
  751. {
  752. Name: "DENSE_RANK",
  753. Args: []*catalog.Argument{},
  754. ReturnType: &ast.TypeName{Name: "int"},
  755. },
  756. {
  757. Name: "DISTINCT",
  758. Args: []*catalog.Argument{
  759. {
  760. Type: &ast.TypeName{Name: "any"},
  761. },
  762. },
  763. ReturnType: &ast.TypeName{Name: "any"},
  764. },
  765. {
  766. Name: "ELT",
  767. Args: []*catalog.Argument{
  768. {
  769. Type: &ast.TypeName{Name: "int"},
  770. },
  771. {
  772. Type: &ast.TypeName{Name: "text"},
  773. Mode: ast.FuncParamVariadic,
  774. },
  775. },
  776. ReturnType: &ast.TypeName{Name: "text"},
  777. },
  778. {
  779. Name: "EXP",
  780. Args: []*catalog.Argument{
  781. {
  782. Type: &ast.TypeName{Name: "int"},
  783. },
  784. },
  785. ReturnType: &ast.TypeName{Name: "double precision"},
  786. },
  787. {
  788. Name: "EXPORT_SET",
  789. Args: []*catalog.Argument{
  790. {
  791. Type: &ast.TypeName{Name: "int"},
  792. },
  793. {
  794. Type: &ast.TypeName{Name: "text"},
  795. },
  796. {
  797. Type: &ast.TypeName{Name: "text"},
  798. },
  799. },
  800. ReturnType: &ast.TypeName{Name: "text"},
  801. },
  802. {
  803. Name: "EXPORT_SET",
  804. Args: []*catalog.Argument{
  805. {
  806. Type: &ast.TypeName{Name: "int"},
  807. },
  808. {
  809. Type: &ast.TypeName{Name: "text"},
  810. },
  811. {
  812. Type: &ast.TypeName{Name: "text"},
  813. },
  814. {
  815. Type: &ast.TypeName{Name: "text"},
  816. },
  817. },
  818. ReturnType: &ast.TypeName{Name: "text"},
  819. },
  820. {
  821. Name: "EXPORT_SET",
  822. Args: []*catalog.Argument{
  823. {
  824. Type: &ast.TypeName{Name: "int"},
  825. },
  826. {
  827. Type: &ast.TypeName{Name: "text"},
  828. },
  829. {
  830. Type: &ast.TypeName{Name: "text"},
  831. },
  832. {
  833. Type: &ast.TypeName{Name: "text"},
  834. },
  835. {
  836. Type: &ast.TypeName{Name: "int"},
  837. },
  838. },
  839. ReturnType: &ast.TypeName{Name: "text"},
  840. },
  841. {
  842. Name: "EXTRACT",
  843. Args: []*catalog.Argument{
  844. {
  845. Type: &ast.TypeName{Name: "date"},
  846. },
  847. {
  848. Type: &ast.TypeName{Name: "any"},
  849. },
  850. },
  851. ReturnType: &ast.TypeName{Name: "int"},
  852. },
  853. {
  854. Name: "EXTRACTVALUE",
  855. Args: []*catalog.Argument{
  856. {
  857. Type: &ast.TypeName{Name: "text"},
  858. },
  859. {
  860. Type: &ast.TypeName{Name: "text"},
  861. },
  862. },
  863. ReturnType: &ast.TypeName{Name: "any"},
  864. },
  865. {
  866. Name: "FIELD",
  867. Args: []*catalog.Argument{
  868. {
  869. Type: &ast.TypeName{Name: "text"},
  870. },
  871. {
  872. Type: &ast.TypeName{Name: "text"},
  873. },
  874. {
  875. Type: &ast.TypeName{Name: "text"},
  876. Mode: ast.FuncParamVariadic,
  877. },
  878. },
  879. ReturnType: &ast.TypeName{Name: "text"},
  880. },
  881. {
  882. Name: "FIND_IN_SET",
  883. Args: []*catalog.Argument{
  884. {
  885. Type: &ast.TypeName{Name: "text"},
  886. },
  887. {
  888. Type: &ast.TypeName{Name: "text"},
  889. },
  890. },
  891. ReturnType: &ast.TypeName{Name: "int"},
  892. },
  893. {
  894. Name: "FIRST_VALUE",
  895. Args: []*catalog.Argument{
  896. {
  897. Type: &ast.TypeName{Name: "any"},
  898. },
  899. },
  900. ReturnType: &ast.TypeName{Name: "any"},
  901. },
  902. {
  903. Name: "FLOOR",
  904. Args: []*catalog.Argument{
  905. {
  906. Type: &ast.TypeName{Name: "double precision"},
  907. },
  908. },
  909. ReturnType: &ast.TypeName{Name: "int"},
  910. },
  911. {
  912. Name: "FORMAT",
  913. Args: []*catalog.Argument{
  914. {
  915. Type: &ast.TypeName{Name: "int"},
  916. },
  917. {
  918. Type: &ast.TypeName{Name: "int"},
  919. },
  920. },
  921. ReturnType: &ast.TypeName{Name: "text"},
  922. },
  923. {
  924. Name: "FORMAT_BYTES",
  925. Args: []*catalog.Argument{
  926. {
  927. Type: &ast.TypeName{Name: "int"},
  928. },
  929. },
  930. ReturnType: &ast.TypeName{Name: "text"},
  931. },
  932. {
  933. Name: "FORMAT_PICO_TIME",
  934. Args: []*catalog.Argument{
  935. {
  936. Type: &ast.TypeName{Name: "time"},
  937. },
  938. },
  939. ReturnType: &ast.TypeName{Name: "text"},
  940. },
  941. {
  942. Name: "FOUND_ROWS",
  943. Args: []*catalog.Argument{},
  944. ReturnType: &ast.TypeName{Name: "int"},
  945. },
  946. {
  947. Name: "FROM_BASE64",
  948. Args: []*catalog.Argument{
  949. {
  950. Type: &ast.TypeName{Name: "text"},
  951. },
  952. },
  953. ReturnType: &ast.TypeName{Name: "text"},
  954. },
  955. {
  956. Name: "FROM_DAYS",
  957. Args: []*catalog.Argument{
  958. {
  959. Type: &ast.TypeName{Name: "int"},
  960. },
  961. },
  962. ReturnType: &ast.TypeName{Name: "date"},
  963. },
  964. {
  965. Name: "FROM_UNIXTIME",
  966. Args: []*catalog.Argument{
  967. {
  968. Type: &ast.TypeName{Name: "bigint"},
  969. },
  970. },
  971. ReturnType: &ast.TypeName{Name: "text"},
  972. },
  973. {
  974. Name: "FROM_UNIXTIME",
  975. Args: []*catalog.Argument{
  976. {
  977. Type: &ast.TypeName{Name: "bigint"},
  978. },
  979. {
  980. Type: &ast.TypeName{Name: "text"},
  981. },
  982. },
  983. ReturnType: &ast.TypeName{Name: "text"},
  984. },
  985. {
  986. Name: "GEOMCOLLECTION",
  987. Args: []*catalog.Argument{
  988. {
  989. Type: &ast.TypeName{Name: "any"},
  990. },
  991. {
  992. Type: &ast.TypeName{Name: "any"},
  993. Mode: ast.FuncParamVariadic,
  994. },
  995. },
  996. ReturnType: &ast.TypeName{Name: "any"},
  997. },
  998. {
  999. Name: "GEOMETRYCOLLECTION",
  1000. Args: []*catalog.Argument{
  1001. {
  1002. Type: &ast.TypeName{Name: "any"},
  1003. },
  1004. {
  1005. Type: &ast.TypeName{Name: "any"},
  1006. Mode: ast.FuncParamVariadic,
  1007. },
  1008. },
  1009. ReturnType: &ast.TypeName{Name: "any"},
  1010. },
  1011. {
  1012. Name: "GET_FORMAT",
  1013. Args: []*catalog.Argument{
  1014. {
  1015. Type: &ast.TypeName{Name: "any"},
  1016. },
  1017. {
  1018. Type: &ast.TypeName{Name: "text"},
  1019. },
  1020. },
  1021. ReturnType: &ast.TypeName{Name: "text"},
  1022. },
  1023. {
  1024. Name: "GET_LOCK",
  1025. Args: []*catalog.Argument{
  1026. {
  1027. Type: &ast.TypeName{Name: "text"},
  1028. },
  1029. {
  1030. Type: &ast.TypeName{Name: "int"},
  1031. },
  1032. },
  1033. ReturnType: &ast.TypeName{Name: "bool"},
  1034. },
  1035. {
  1036. Name: "GREATEST",
  1037. Args: []*catalog.Argument{
  1038. {
  1039. Type: &ast.TypeName{Name: "any"},
  1040. },
  1041. {
  1042. Type: &ast.TypeName{Name: "any"},
  1043. },
  1044. {
  1045. Type: &ast.TypeName{Name: "any"},
  1046. Mode: ast.FuncParamVariadic,
  1047. },
  1048. },
  1049. ReturnType: &ast.TypeName{Name: "any"},
  1050. },
  1051. {
  1052. Name: "GROUPING",
  1053. Args: []*catalog.Argument{
  1054. {
  1055. Type: &ast.TypeName{Name: "any"},
  1056. },
  1057. {
  1058. Type: &ast.TypeName{Name: "any"},
  1059. Mode: ast.FuncParamVariadic,
  1060. },
  1061. },
  1062. ReturnType: &ast.TypeName{Name: "any"},
  1063. },
  1064. {
  1065. Name: "GROUP_CONCAT",
  1066. Args: []*catalog.Argument{
  1067. {
  1068. Type: &ast.TypeName{Name: "any"},
  1069. },
  1070. {
  1071. Type: &ast.TypeName{Name: "any"},
  1072. Mode: ast.FuncParamVariadic,
  1073. },
  1074. },
  1075. ReturnType: &ast.TypeName{Name: "text"},
  1076. ReturnTypeNullable: true,
  1077. },
  1078. {
  1079. Name: "GTID_SUBSET",
  1080. Args: []*catalog.Argument{
  1081. {
  1082. Type: &ast.TypeName{Name: "text"},
  1083. },
  1084. {
  1085. Type: &ast.TypeName{Name: "text"},
  1086. },
  1087. },
  1088. ReturnType: &ast.TypeName{Name: "bool"},
  1089. },
  1090. {
  1091. Name: "GTID_SUBTRACT",
  1092. Args: []*catalog.Argument{
  1093. {
  1094. Type: &ast.TypeName{Name: "text"},
  1095. },
  1096. {
  1097. Type: &ast.TypeName{Name: "text"},
  1098. },
  1099. },
  1100. ReturnType: &ast.TypeName{Name: "text"},
  1101. },
  1102. {
  1103. Name: "HEX",
  1104. Args: []*catalog.Argument{
  1105. {
  1106. Type: &ast.TypeName{Name: "int"},
  1107. },
  1108. },
  1109. ReturnType: &ast.TypeName{Name: "text"},
  1110. },
  1111. {
  1112. Name: "HEX",
  1113. Args: []*catalog.Argument{
  1114. {
  1115. Type: &ast.TypeName{Name: "text"},
  1116. },
  1117. },
  1118. ReturnType: &ast.TypeName{Name: "int"},
  1119. },
  1120. {
  1121. Name: "HOUR",
  1122. Args: []*catalog.Argument{
  1123. {
  1124. Type: &ast.TypeName{Name: "time"},
  1125. },
  1126. },
  1127. ReturnType: &ast.TypeName{Name: "int"},
  1128. },
  1129. {
  1130. Name: "ICU_VERSION",
  1131. Args: []*catalog.Argument{},
  1132. ReturnType: &ast.TypeName{Name: "text"},
  1133. },
  1134. {
  1135. Name: "IF",
  1136. Args: []*catalog.Argument{
  1137. {
  1138. Type: &ast.TypeName{Name: "any"},
  1139. },
  1140. {
  1141. Type: &ast.TypeName{Name: "any"},
  1142. },
  1143. {
  1144. Type: &ast.TypeName{Name: "any"},
  1145. },
  1146. },
  1147. ReturnType: &ast.TypeName{Name: "any"},
  1148. },
  1149. {
  1150. Name: "IFNULL",
  1151. Args: []*catalog.Argument{
  1152. {
  1153. Type: &ast.TypeName{Name: "any"},
  1154. },
  1155. {
  1156. Type: &ast.TypeName{Name: "any"},
  1157. },
  1158. },
  1159. ReturnType: &ast.TypeName{Name: "any"},
  1160. },
  1161. {
  1162. Name: "INET6_ATON",
  1163. Args: []*catalog.Argument{
  1164. {
  1165. Type: &ast.TypeName{Name: "text"},
  1166. },
  1167. },
  1168. ReturnType: &ast.TypeName{Name: "binary"},
  1169. },
  1170. {
  1171. Name: "INET6_NTOA",
  1172. Args: []*catalog.Argument{
  1173. {
  1174. Type: &ast.TypeName{Name: "binary"},
  1175. },
  1176. },
  1177. ReturnType: &ast.TypeName{Name: "text"},
  1178. },
  1179. {
  1180. Name: "INET_ATON",
  1181. Args: []*catalog.Argument{
  1182. {
  1183. Type: &ast.TypeName{Name: "text"},
  1184. },
  1185. },
  1186. ReturnType: &ast.TypeName{Name: "int"},
  1187. },
  1188. {
  1189. Name: "INET_NTOA",
  1190. Args: []*catalog.Argument{
  1191. {
  1192. Type: &ast.TypeName{Name: "int"},
  1193. },
  1194. },
  1195. ReturnType: &ast.TypeName{Name: "text"},
  1196. },
  1197. {
  1198. Name: "INSERT",
  1199. Args: []*catalog.Argument{
  1200. {
  1201. Type: &ast.TypeName{Name: "text"},
  1202. },
  1203. {
  1204. Type: &ast.TypeName{Name: "int"},
  1205. },
  1206. {
  1207. Type: &ast.TypeName{Name: "int"},
  1208. },
  1209. {
  1210. Type: &ast.TypeName{Name: "text"},
  1211. },
  1212. },
  1213. ReturnType: &ast.TypeName{Name: "text"},
  1214. },
  1215. {
  1216. Name: "INSTR",
  1217. Args: []*catalog.Argument{
  1218. {
  1219. Type: &ast.TypeName{Name: "text"},
  1220. },
  1221. {
  1222. Type: &ast.TypeName{Name: "text"},
  1223. },
  1224. },
  1225. ReturnType: &ast.TypeName{Name: "int"},
  1226. },
  1227. {
  1228. Name: "INTERVAL",
  1229. Args: []*catalog.Argument{
  1230. {
  1231. Type: &ast.TypeName{Name: "any"},
  1232. },
  1233. {
  1234. Type: &ast.TypeName{Name: "any"},
  1235. },
  1236. {
  1237. Type: &ast.TypeName{Name: "any"},
  1238. Mode: ast.FuncParamVariadic,
  1239. },
  1240. },
  1241. ReturnType: &ast.TypeName{Name: "any"},
  1242. },
  1243. {
  1244. Name: "ISNULL",
  1245. Args: []*catalog.Argument{
  1246. {
  1247. Type: &ast.TypeName{Name: "any"},
  1248. },
  1249. },
  1250. ReturnType: &ast.TypeName{Name: "bool"},
  1251. },
  1252. {
  1253. Name: "IS_FREE_LOCK",
  1254. Args: []*catalog.Argument{
  1255. {
  1256. Type: &ast.TypeName{Name: "text"},
  1257. },
  1258. },
  1259. ReturnType: &ast.TypeName{Name: "bool"},
  1260. },
  1261. {
  1262. Name: "IS_IPV4",
  1263. Args: []*catalog.Argument{
  1264. {
  1265. Type: &ast.TypeName{Name: "text"},
  1266. },
  1267. },
  1268. ReturnType: &ast.TypeName{Name: "bool"},
  1269. },
  1270. {
  1271. Name: "IS_IPV4_COMPAT",
  1272. Args: []*catalog.Argument{
  1273. {
  1274. Type: &ast.TypeName{Name: "binary"},
  1275. },
  1276. },
  1277. ReturnType: &ast.TypeName{Name: "bool"},
  1278. },
  1279. {
  1280. Name: "IS_IPV4_MAPPED",
  1281. Args: []*catalog.Argument{
  1282. {
  1283. Type: &ast.TypeName{Name: "binary"},
  1284. },
  1285. },
  1286. ReturnType: &ast.TypeName{Name: "bool"},
  1287. },
  1288. {
  1289. Name: "IS_IPV6",
  1290. Args: []*catalog.Argument{
  1291. {
  1292. Type: &ast.TypeName{Name: "text"},
  1293. },
  1294. },
  1295. ReturnType: &ast.TypeName{Name: "bool"},
  1296. },
  1297. {
  1298. Name: "IS_USED_LOCK",
  1299. Args: []*catalog.Argument{
  1300. {
  1301. Type: &ast.TypeName{Name: "text"},
  1302. },
  1303. },
  1304. ReturnType: &ast.TypeName{Name: "bool"},
  1305. },
  1306. {
  1307. Name: "IS_UUID",
  1308. Args: []*catalog.Argument{
  1309. {
  1310. Type: &ast.TypeName{Name: "text"},
  1311. },
  1312. },
  1313. ReturnType: &ast.TypeName{Name: "bool"},
  1314. },
  1315. {
  1316. Name: "JSON_ARRAY",
  1317. Args: []*catalog.Argument{
  1318. {
  1319. Type: &ast.TypeName{Name: "any"},
  1320. Mode: ast.FuncParamVariadic,
  1321. },
  1322. },
  1323. ReturnType: &ast.TypeName{Name: "json"},
  1324. },
  1325. {
  1326. Name: "JSON_ARRAYAGG",
  1327. Args: []*catalog.Argument{
  1328. {
  1329. Type: &ast.TypeName{Name: "any"},
  1330. },
  1331. },
  1332. ReturnType: &ast.TypeName{Name: "json"},
  1333. },
  1334. {
  1335. Name: "JSON_ARRAY_APPEND",
  1336. Args: []*catalog.Argument{
  1337. {
  1338. Type: &ast.TypeName{Name: "text"},
  1339. },
  1340. {
  1341. Type: &ast.TypeName{Name: "text"},
  1342. },
  1343. {
  1344. Type: &ast.TypeName{Name: "any"},
  1345. },
  1346. {
  1347. Type: &ast.TypeName{Name: "any"},
  1348. Mode: ast.FuncParamVariadic,
  1349. },
  1350. },
  1351. ReturnType: &ast.TypeName{Name: "json"},
  1352. },
  1353. {
  1354. Name: "JSON_ARRAY_INSERT",
  1355. Args: []*catalog.Argument{
  1356. {
  1357. Type: &ast.TypeName{Name: "text"},
  1358. },
  1359. {
  1360. Type: &ast.TypeName{Name: "text"},
  1361. },
  1362. {
  1363. Type: &ast.TypeName{Name: "any"},
  1364. },
  1365. {
  1366. Type: &ast.TypeName{Name: "any"},
  1367. Mode: ast.FuncParamVariadic,
  1368. },
  1369. },
  1370. ReturnType: &ast.TypeName{Name: "json"},
  1371. },
  1372. {
  1373. Name: "JSON_CONTAINS",
  1374. Args: []*catalog.Argument{
  1375. {
  1376. Type: &ast.TypeName{Name: "text"},
  1377. },
  1378. {
  1379. Type: &ast.TypeName{Name: "text"},
  1380. },
  1381. },
  1382. ReturnType: &ast.TypeName{Name: "bool"},
  1383. },
  1384. {
  1385. Name: "JSON_CONTAINS",
  1386. Args: []*catalog.Argument{
  1387. {
  1388. Type: &ast.TypeName{Name: "text"},
  1389. },
  1390. {
  1391. Type: &ast.TypeName{Name: "text"},
  1392. },
  1393. {
  1394. Type: &ast.TypeName{Name: "text"},
  1395. },
  1396. },
  1397. ReturnType: &ast.TypeName{Name: "bool"},
  1398. },
  1399. {
  1400. Name: "JSON_CONTAINS_PATH",
  1401. Args: []*catalog.Argument{
  1402. {
  1403. Type: &ast.TypeName{Name: "text"},
  1404. },
  1405. {
  1406. Type: &ast.TypeName{Name: "text"},
  1407. },
  1408. {
  1409. Type: &ast.TypeName{Name: "text"},
  1410. },
  1411. {
  1412. Type: &ast.TypeName{Name: "text"},
  1413. Mode: ast.FuncParamVariadic,
  1414. },
  1415. },
  1416. ReturnType: &ast.TypeName{Name: "bool"},
  1417. },
  1418. {
  1419. Name: "JSON_DEPTH",
  1420. Args: []*catalog.Argument{
  1421. {
  1422. Type: &ast.TypeName{Name: "text"},
  1423. },
  1424. },
  1425. ReturnType: &ast.TypeName{Name: "int"},
  1426. },
  1427. {
  1428. Name: "JSON_EXTRACT",
  1429. Args: []*catalog.Argument{
  1430. {
  1431. Type: &ast.TypeName{Name: "text"},
  1432. },
  1433. {
  1434. Type: &ast.TypeName{Name: "text"},
  1435. },
  1436. {
  1437. Type: &ast.TypeName{Name: "text"},
  1438. Mode: ast.FuncParamVariadic,
  1439. },
  1440. },
  1441. ReturnType: &ast.TypeName{Name: "any"},
  1442. },
  1443. {
  1444. Name: "JSON_INSERT",
  1445. Args: []*catalog.Argument{
  1446. {
  1447. Type: &ast.TypeName{Name: "text"},
  1448. },
  1449. {
  1450. Type: &ast.TypeName{Name: "text"},
  1451. },
  1452. {
  1453. Type: &ast.TypeName{Name: "any"},
  1454. },
  1455. {
  1456. Type: &ast.TypeName{Name: "any"},
  1457. Mode: ast.FuncParamVariadic,
  1458. },
  1459. },
  1460. ReturnType: &ast.TypeName{Name: "json"},
  1461. },
  1462. {
  1463. Name: "JSON_KEYS",
  1464. Args: []*catalog.Argument{
  1465. {
  1466. Type: &ast.TypeName{Name: "text"},
  1467. },
  1468. },
  1469. ReturnType: &ast.TypeName{Name: "json"},
  1470. },
  1471. {
  1472. Name: "JSON_KEYS",
  1473. Args: []*catalog.Argument{
  1474. {
  1475. Type: &ast.TypeName{Name: "text"},
  1476. },
  1477. {
  1478. Type: &ast.TypeName{Name: "text"},
  1479. },
  1480. },
  1481. ReturnType: &ast.TypeName{Name: "json"},
  1482. },
  1483. {
  1484. Name: "JSON_LENGTH",
  1485. Args: []*catalog.Argument{
  1486. {
  1487. Type: &ast.TypeName{Name: "text"},
  1488. },
  1489. },
  1490. ReturnType: &ast.TypeName{Name: "int"},
  1491. },
  1492. {
  1493. Name: "JSON_LENGTH",
  1494. Args: []*catalog.Argument{
  1495. {
  1496. Type: &ast.TypeName{Name: "text"},
  1497. },
  1498. {
  1499. Type: &ast.TypeName{Name: "text"},
  1500. },
  1501. },
  1502. ReturnType: &ast.TypeName{Name: "int"},
  1503. },
  1504. {
  1505. Name: "JSON_MERGE",
  1506. Args: []*catalog.Argument{
  1507. {
  1508. Type: &ast.TypeName{Name: "text"},
  1509. },
  1510. {
  1511. Type: &ast.TypeName{Name: "text"},
  1512. },
  1513. {
  1514. Type: &ast.TypeName{Name: "text"},
  1515. Mode: ast.FuncParamVariadic,
  1516. },
  1517. },
  1518. ReturnType: &ast.TypeName{Name: "json"},
  1519. },
  1520. {
  1521. Name: "JSON_MERGE_PATCH",
  1522. Args: []*catalog.Argument{
  1523. {
  1524. Type: &ast.TypeName{Name: "text"},
  1525. },
  1526. {
  1527. Type: &ast.TypeName{Name: "text"},
  1528. },
  1529. {
  1530. Type: &ast.TypeName{Name: "text"},
  1531. Mode: ast.FuncParamVariadic,
  1532. },
  1533. },
  1534. ReturnType: &ast.TypeName{Name: "json"},
  1535. },
  1536. {
  1537. Name: "JSON_MERGE_PRESERVE",
  1538. Args: []*catalog.Argument{
  1539. {
  1540. Type: &ast.TypeName{Name: "text"},
  1541. },
  1542. {
  1543. Type: &ast.TypeName{Name: "text"},
  1544. },
  1545. {
  1546. Type: &ast.TypeName{Name: "text"},
  1547. Mode: ast.FuncParamVariadic,
  1548. },
  1549. },
  1550. ReturnType: &ast.TypeName{Name: "json"},
  1551. },
  1552. {
  1553. Name: "JSON_OBJECT",
  1554. Args: []*catalog.Argument{
  1555. {
  1556. Type: &ast.TypeName{Name: "any"},
  1557. Mode: ast.FuncParamVariadic,
  1558. },
  1559. },
  1560. ReturnType: &ast.TypeName{Name: "json"},
  1561. },
  1562. {
  1563. Name: "JSON_OBJECTAGG",
  1564. Args: []*catalog.Argument{
  1565. {
  1566. Type: &ast.TypeName{Name: "any"},
  1567. },
  1568. {
  1569. Type: &ast.TypeName{Name: "any"},
  1570. },
  1571. },
  1572. ReturnType: &ast.TypeName{Name: "json"},
  1573. },
  1574. {
  1575. Name: "JSON_OVERLAPS",
  1576. Args: []*catalog.Argument{
  1577. {
  1578. Type: &ast.TypeName{Name: "text"},
  1579. },
  1580. {
  1581. Type: &ast.TypeName{Name: "text"},
  1582. },
  1583. },
  1584. ReturnType: &ast.TypeName{Name: "bool"},
  1585. },
  1586. {
  1587. Name: "JSON_PRETTY",
  1588. Args: []*catalog.Argument{
  1589. {
  1590. Type: &ast.TypeName{Name: "text"},
  1591. },
  1592. },
  1593. ReturnType: &ast.TypeName{Name: "any"},
  1594. },
  1595. {
  1596. Name: "JSON_QUOTE",
  1597. Args: []*catalog.Argument{
  1598. {
  1599. Type: &ast.TypeName{Name: "text"},
  1600. },
  1601. },
  1602. ReturnType: &ast.TypeName{Name: "text"},
  1603. },
  1604. {
  1605. Name: "JSON_REMOVE",
  1606. Args: []*catalog.Argument{
  1607. {
  1608. Type: &ast.TypeName{Name: "text"},
  1609. },
  1610. {
  1611. Type: &ast.TypeName{Name: "text"},
  1612. },
  1613. {
  1614. Type: &ast.TypeName{Name: "text"},
  1615. Mode: ast.FuncParamVariadic,
  1616. },
  1617. },
  1618. ReturnType: &ast.TypeName{Name: "json"},
  1619. },
  1620. {
  1621. Name: "JSON_REPLACE",
  1622. Args: []*catalog.Argument{
  1623. {
  1624. Type: &ast.TypeName{Name: "text"},
  1625. },
  1626. {
  1627. Type: &ast.TypeName{Name: "text"},
  1628. },
  1629. {
  1630. Type: &ast.TypeName{Name: "any"},
  1631. },
  1632. {
  1633. Type: &ast.TypeName{Name: "any"},
  1634. Mode: ast.FuncParamVariadic,
  1635. },
  1636. },
  1637. ReturnType: &ast.TypeName{Name: "json"},
  1638. },
  1639. {
  1640. Name: "JSON_SCHEMA_VALID",
  1641. Args: []*catalog.Argument{
  1642. {
  1643. Type: &ast.TypeName{Name: "text"},
  1644. },
  1645. {
  1646. Type: &ast.TypeName{Name: "text"},
  1647. },
  1648. },
  1649. ReturnType: &ast.TypeName{Name: "bool"},
  1650. },
  1651. {
  1652. Name: "JSON_SCHEMA_VALIDATION_REPORT",
  1653. Args: []*catalog.Argument{
  1654. {
  1655. Type: &ast.TypeName{Name: "text"},
  1656. },
  1657. {
  1658. Type: &ast.TypeName{Name: "text"},
  1659. },
  1660. },
  1661. ReturnType: &ast.TypeName{Name: "json"},
  1662. },
  1663. {
  1664. Name: "JSON_SEARCH",
  1665. Args: []*catalog.Argument{
  1666. {
  1667. Type: &ast.TypeName{Name: "text"},
  1668. },
  1669. {
  1670. Type: &ast.TypeName{Name: "text"},
  1671. },
  1672. {
  1673. Type: &ast.TypeName{Name: "text"},
  1674. },
  1675. },
  1676. ReturnType: &ast.TypeName{Name: "any"},
  1677. },
  1678. {
  1679. Name: "JSON_SEARCH",
  1680. Args: []*catalog.Argument{
  1681. {
  1682. Type: &ast.TypeName{Name: "text"},
  1683. },
  1684. {
  1685. Type: &ast.TypeName{Name: "text"},
  1686. },
  1687. {
  1688. Type: &ast.TypeName{Name: "text"},
  1689. },
  1690. {
  1691. Type: &ast.TypeName{Name: "text"},
  1692. },
  1693. {
  1694. Type: &ast.TypeName{Name: "text"},
  1695. Mode: ast.FuncParamVariadic,
  1696. },
  1697. },
  1698. ReturnType: &ast.TypeName{Name: "any"},
  1699. },
  1700. {
  1701. Name: "JSON_SET",
  1702. Args: []*catalog.Argument{
  1703. {
  1704. Type: &ast.TypeName{Name: "text"},
  1705. },
  1706. {
  1707. Type: &ast.TypeName{Name: "text"},
  1708. },
  1709. {
  1710. Type: &ast.TypeName{Name: "any"},
  1711. },
  1712. {
  1713. Type: &ast.TypeName{Name: "any"},
  1714. Mode: ast.FuncParamVariadic,
  1715. },
  1716. },
  1717. ReturnType: &ast.TypeName{Name: "json"},
  1718. },
  1719. {
  1720. Name: "JSON_STORAGE_FREE",
  1721. Args: []*catalog.Argument{
  1722. {
  1723. Type: &ast.TypeName{Name: "text"},
  1724. },
  1725. },
  1726. ReturnType: &ast.TypeName{Name: "int"},
  1727. },
  1728. {
  1729. Name: "JSON_STORAGE_SIZE",
  1730. Args: []*catalog.Argument{
  1731. {
  1732. Type: &ast.TypeName{Name: "text"},
  1733. },
  1734. },
  1735. ReturnType: &ast.TypeName{Name: "int"},
  1736. },
  1737. {
  1738. Name: "JSON_TYPE",
  1739. Args: []*catalog.Argument{
  1740. {
  1741. Type: &ast.TypeName{Name: "text"},
  1742. },
  1743. },
  1744. ReturnType: &ast.TypeName{Name: "any"},
  1745. },
  1746. {
  1747. Name: "JSON_UNQUOTE",
  1748. Args: []*catalog.Argument{
  1749. {
  1750. Type: &ast.TypeName{Name: "text"},
  1751. },
  1752. },
  1753. ReturnType: &ast.TypeName{Name: "json"},
  1754. },
  1755. {
  1756. Name: "JSON_VALID",
  1757. Args: []*catalog.Argument{
  1758. {
  1759. Type: &ast.TypeName{Name: "text"},
  1760. },
  1761. },
  1762. ReturnType: &ast.TypeName{Name: "bool"},
  1763. },
  1764. {
  1765. Name: "JSON_VALUE",
  1766. Args: []*catalog.Argument{
  1767. {
  1768. Type: &ast.TypeName{Name: "text"},
  1769. },
  1770. {
  1771. Type: &ast.TypeName{Name: "text"},
  1772. },
  1773. },
  1774. ReturnType: &ast.TypeName{Name: "any"},
  1775. },
  1776. {
  1777. Name: "LAG",
  1778. Args: []*catalog.Argument{
  1779. {
  1780. Type: &ast.TypeName{Name: "any"},
  1781. },
  1782. {
  1783. Type: &ast.TypeName{Name: "int"},
  1784. HasDefault: true,
  1785. },
  1786. {
  1787. Type: &ast.TypeName{Name: "any"},
  1788. HasDefault: true,
  1789. },
  1790. },
  1791. ReturnType: &ast.TypeName{Name: "any"},
  1792. },
  1793. {
  1794. Name: "LAST_DAY",
  1795. Args: []*catalog.Argument{
  1796. {
  1797. Type: &ast.TypeName{Name: "date"},
  1798. },
  1799. },
  1800. ReturnType: &ast.TypeName{Name: "date"},
  1801. },
  1802. {
  1803. Name: "LAST_INSERT_ID",
  1804. Args: []*catalog.Argument{},
  1805. ReturnType: &ast.TypeName{Name: "bigint"},
  1806. },
  1807. {
  1808. Name: "LAST_INSERT_ID",
  1809. Args: []*catalog.Argument{
  1810. {
  1811. Type: &ast.TypeName{Name: "any"},
  1812. },
  1813. },
  1814. ReturnType: &ast.TypeName{Name: "bigint"},
  1815. },
  1816. {
  1817. Name: "LAST_VALUE",
  1818. Args: []*catalog.Argument{
  1819. {
  1820. Type: &ast.TypeName{Name: "any"},
  1821. },
  1822. },
  1823. ReturnType: &ast.TypeName{Name: "any"},
  1824. },
  1825. {
  1826. Name: "LCASE",
  1827. Args: []*catalog.Argument{
  1828. {
  1829. Type: &ast.TypeName{Name: "text"},
  1830. },
  1831. },
  1832. ReturnType: &ast.TypeName{Name: "text"},
  1833. },
  1834. {
  1835. Name: "LEAD",
  1836. Args: []*catalog.Argument{
  1837. {
  1838. Type: &ast.TypeName{Name: "any"},
  1839. },
  1840. {
  1841. Type: &ast.TypeName{Name: "int"},
  1842. HasDefault: true,
  1843. },
  1844. {
  1845. Type: &ast.TypeName{Name: "any"},
  1846. HasDefault: true,
  1847. },
  1848. },
  1849. ReturnType: &ast.TypeName{Name: "any"},
  1850. },
  1851. {
  1852. Name: "LEAST",
  1853. Args: []*catalog.Argument{
  1854. {
  1855. Type: &ast.TypeName{Name: "any"},
  1856. },
  1857. {
  1858. Type: &ast.TypeName{Name: "any"},
  1859. },
  1860. {
  1861. Type: &ast.TypeName{Name: "any"},
  1862. Mode: ast.FuncParamVariadic,
  1863. },
  1864. },
  1865. ReturnType: &ast.TypeName{Name: "any"},
  1866. },
  1867. {
  1868. Name: "LEFT",
  1869. Args: []*catalog.Argument{
  1870. {
  1871. Type: &ast.TypeName{Name: "text"},
  1872. },
  1873. {
  1874. Type: &ast.TypeName{Name: "int"},
  1875. },
  1876. },
  1877. ReturnType: &ast.TypeName{Name: "text"},
  1878. },
  1879. {
  1880. Name: "LENGTH",
  1881. Args: []*catalog.Argument{
  1882. {
  1883. Type: &ast.TypeName{Name: "text"},
  1884. },
  1885. },
  1886. ReturnType: &ast.TypeName{Name: "int"},
  1887. },
  1888. {
  1889. Name: "LINESTRING",
  1890. Args: []*catalog.Argument{
  1891. {
  1892. Type: &ast.TypeName{Name: "any"},
  1893. },
  1894. {
  1895. Type: &ast.TypeName{Name: "any"},
  1896. Mode: ast.FuncParamVariadic,
  1897. },
  1898. },
  1899. ReturnType: &ast.TypeName{Name: "any"},
  1900. },
  1901. {
  1902. Name: "LN",
  1903. Args: []*catalog.Argument{
  1904. {
  1905. Type: &ast.TypeName{Name: "double precision"},
  1906. },
  1907. },
  1908. ReturnType: &ast.TypeName{Name: "double precision"},
  1909. },
  1910. {
  1911. Name: "LOAD_FILE",
  1912. Args: []*catalog.Argument{
  1913. {
  1914. Type: &ast.TypeName{Name: "text"},
  1915. },
  1916. },
  1917. ReturnType: &ast.TypeName{Name: "text"},
  1918. },
  1919. {
  1920. Name: "LOCALTIME",
  1921. Args: []*catalog.Argument{},
  1922. ReturnType: &ast.TypeName{Name: "datetime"},
  1923. },
  1924. {
  1925. Name: "LOCALTIME",
  1926. Args: []*catalog.Argument{
  1927. {
  1928. Type: &ast.TypeName{Name: "int"},
  1929. },
  1930. },
  1931. ReturnType: &ast.TypeName{Name: "datetime"},
  1932. },
  1933. {
  1934. Name: "LOCALTIMESTAMP",
  1935. Args: []*catalog.Argument{},
  1936. ReturnType: &ast.TypeName{Name: "datetime"},
  1937. },
  1938. {
  1939. Name: "LOCALTIMESTAMP",
  1940. Args: []*catalog.Argument{
  1941. {
  1942. Type: &ast.TypeName{Name: "int"},
  1943. },
  1944. },
  1945. ReturnType: &ast.TypeName{Name: "datetime"},
  1946. },
  1947. {
  1948. Name: "LOCATE",
  1949. Args: []*catalog.Argument{
  1950. {
  1951. Type: &ast.TypeName{Name: "text"},
  1952. },
  1953. {
  1954. Type: &ast.TypeName{Name: "text"},
  1955. },
  1956. },
  1957. ReturnType: &ast.TypeName{Name: "int"},
  1958. },
  1959. {
  1960. Name: "LOCATE",
  1961. Args: []*catalog.Argument{
  1962. {
  1963. Type: &ast.TypeName{Name: "text"},
  1964. },
  1965. {
  1966. Type: &ast.TypeName{Name: "text"},
  1967. },
  1968. {
  1969. Type: &ast.TypeName{Name: "int"},
  1970. },
  1971. },
  1972. ReturnType: &ast.TypeName{Name: "int"},
  1973. },
  1974. {
  1975. Name: "LOG",
  1976. Args: []*catalog.Argument{
  1977. {
  1978. Type: &ast.TypeName{Name: "double precision"},
  1979. },
  1980. },
  1981. ReturnType: &ast.TypeName{Name: "double precision"},
  1982. },
  1983. {
  1984. Name: "LOG",
  1985. Args: []*catalog.Argument{
  1986. {
  1987. Type: &ast.TypeName{Name: "double precision"},
  1988. },
  1989. {
  1990. Type: &ast.TypeName{Name: "int"},
  1991. },
  1992. },
  1993. ReturnType: &ast.TypeName{Name: "int"},
  1994. },
  1995. {
  1996. Name: "LOG10",
  1997. Args: []*catalog.Argument{
  1998. {
  1999. Type: &ast.TypeName{Name: "double precision"},
  2000. },
  2001. },
  2002. ReturnType: &ast.TypeName{Name: "int"},
  2003. },
  2004. {
  2005. Name: "LOG2",
  2006. Args: []*catalog.Argument{
  2007. {
  2008. Type: &ast.TypeName{Name: "double precision"},
  2009. },
  2010. },
  2011. ReturnType: &ast.TypeName{Name: "int"},
  2012. },
  2013. {
  2014. Name: "LOWER",
  2015. Args: []*catalog.Argument{
  2016. {
  2017. Type: &ast.TypeName{Name: "text"},
  2018. },
  2019. },
  2020. ReturnType: &ast.TypeName{Name: "text"},
  2021. },
  2022. {
  2023. Name: "LPAD",
  2024. Args: []*catalog.Argument{
  2025. {
  2026. Type: &ast.TypeName{Name: "text"},
  2027. },
  2028. {
  2029. Type: &ast.TypeName{Name: "int"},
  2030. },
  2031. {
  2032. Type: &ast.TypeName{Name: "text"},
  2033. },
  2034. },
  2035. ReturnType: &ast.TypeName{Name: "text"},
  2036. },
  2037. {
  2038. Name: "LTRIM",
  2039. Args: []*catalog.Argument{
  2040. {
  2041. Type: &ast.TypeName{Name: "text"},
  2042. },
  2043. },
  2044. ReturnType: &ast.TypeName{Name: "text"},
  2045. },
  2046. {
  2047. Name: "MAKEDATE",
  2048. Args: []*catalog.Argument{
  2049. {
  2050. Type: &ast.TypeName{Name: "int"},
  2051. },
  2052. {
  2053. Type: &ast.TypeName{Name: "int"},
  2054. },
  2055. },
  2056. ReturnType: &ast.TypeName{Name: "date"},
  2057. },
  2058. {
  2059. Name: "MAKETIME",
  2060. Args: []*catalog.Argument{
  2061. {
  2062. Type: &ast.TypeName{Name: "int"},
  2063. },
  2064. {
  2065. Type: &ast.TypeName{Name: "int"},
  2066. },
  2067. {
  2068. Type: &ast.TypeName{Name: "int"},
  2069. },
  2070. },
  2071. ReturnType: &ast.TypeName{Name: "time"},
  2072. },
  2073. {
  2074. Name: "MAKE_SET",
  2075. Args: []*catalog.Argument{
  2076. {
  2077. Type: &ast.TypeName{Name: "int"},
  2078. },
  2079. {
  2080. Type: &ast.TypeName{Name: "text"},
  2081. },
  2082. {
  2083. Type: &ast.TypeName{Name: "text"},
  2084. Mode: ast.FuncParamVariadic,
  2085. },
  2086. },
  2087. ReturnType: &ast.TypeName{Name: "text"},
  2088. },
  2089. {
  2090. Name: "MASTER_POS_WAIT",
  2091. Args: []*catalog.Argument{
  2092. {
  2093. Type: &ast.TypeName{Name: "text"},
  2094. },
  2095. {
  2096. Type: &ast.TypeName{Name: "int"},
  2097. },
  2098. },
  2099. ReturnType: &ast.TypeName{Name: "int"},
  2100. },
  2101. {
  2102. Name: "MASTER_POS_WAIT",
  2103. Args: []*catalog.Argument{
  2104. {
  2105. Type: &ast.TypeName{Name: "text"},
  2106. },
  2107. {
  2108. Type: &ast.TypeName{Name: "int"},
  2109. },
  2110. {
  2111. Type: &ast.TypeName{Name: "int"},
  2112. },
  2113. },
  2114. ReturnType: &ast.TypeName{Name: "int"},
  2115. },
  2116. {
  2117. Name: "MASTER_POS_WAIT",
  2118. Args: []*catalog.Argument{
  2119. {
  2120. Type: &ast.TypeName{Name: "text"},
  2121. },
  2122. {
  2123. Type: &ast.TypeName{Name: "int"},
  2124. },
  2125. {
  2126. Type: &ast.TypeName{Name: "int"},
  2127. },
  2128. {
  2129. Type: &ast.TypeName{Name: "text"},
  2130. },
  2131. },
  2132. ReturnType: &ast.TypeName{Name: "int"},
  2133. },
  2134. {
  2135. Name: "MAX",
  2136. Args: []*catalog.Argument{
  2137. {
  2138. Type: &ast.TypeName{Name: "any"},
  2139. },
  2140. },
  2141. ReturnType: &ast.TypeName{Name: "any"},
  2142. },
  2143. {
  2144. Name: "MBRCONTAINS",
  2145. Args: []*catalog.Argument{
  2146. {
  2147. Type: &ast.TypeName{Name: "any"},
  2148. },
  2149. {
  2150. Type: &ast.TypeName{Name: "any"},
  2151. },
  2152. },
  2153. ReturnType: &ast.TypeName{Name: "bool"},
  2154. },
  2155. {
  2156. Name: "MBRCOVEREDBY",
  2157. Args: []*catalog.Argument{
  2158. {
  2159. Type: &ast.TypeName{Name: "any"},
  2160. },
  2161. {
  2162. Type: &ast.TypeName{Name: "any"},
  2163. },
  2164. },
  2165. ReturnType: &ast.TypeName{Name: "bool"},
  2166. },
  2167. {
  2168. Name: "MBRCOVERS",
  2169. Args: []*catalog.Argument{
  2170. {
  2171. Type: &ast.TypeName{Name: "any"},
  2172. },
  2173. {
  2174. Type: &ast.TypeName{Name: "any"},
  2175. },
  2176. },
  2177. ReturnType: &ast.TypeName{Name: "bool"},
  2178. },
  2179. {
  2180. Name: "MBRDISJOINT",
  2181. Args: []*catalog.Argument{
  2182. {
  2183. Type: &ast.TypeName{Name: "any"},
  2184. },
  2185. {
  2186. Type: &ast.TypeName{Name: "any"},
  2187. },
  2188. },
  2189. ReturnType: &ast.TypeName{Name: "bool"},
  2190. },
  2191. {
  2192. Name: "MBREQUALS",
  2193. Args: []*catalog.Argument{
  2194. {
  2195. Type: &ast.TypeName{Name: "any"},
  2196. },
  2197. {
  2198. Type: &ast.TypeName{Name: "any"},
  2199. },
  2200. },
  2201. ReturnType: &ast.TypeName{Name: "bool"},
  2202. },
  2203. {
  2204. Name: "MBRINTERSECTS",
  2205. Args: []*catalog.Argument{
  2206. {
  2207. Type: &ast.TypeName{Name: "any"},
  2208. },
  2209. {
  2210. Type: &ast.TypeName{Name: "any"},
  2211. },
  2212. },
  2213. ReturnType: &ast.TypeName{Name: "bool"},
  2214. },
  2215. {
  2216. Name: "MBROVERLAPS",
  2217. Args: []*catalog.Argument{
  2218. {
  2219. Type: &ast.TypeName{Name: "any"},
  2220. },
  2221. {
  2222. Type: &ast.TypeName{Name: "any"},
  2223. },
  2224. },
  2225. ReturnType: &ast.TypeName{Name: "bool"},
  2226. },
  2227. {
  2228. Name: "MBRTOUCHES",
  2229. Args: []*catalog.Argument{
  2230. {
  2231. Type: &ast.TypeName{Name: "any"},
  2232. },
  2233. {
  2234. Type: &ast.TypeName{Name: "any"},
  2235. },
  2236. },
  2237. ReturnType: &ast.TypeName{Name: "bool"},
  2238. },
  2239. {
  2240. Name: "MBRWITHIN",
  2241. Args: []*catalog.Argument{
  2242. {
  2243. Type: &ast.TypeName{Name: "any"},
  2244. },
  2245. {
  2246. Type: &ast.TypeName{Name: "any"},
  2247. },
  2248. },
  2249. ReturnType: &ast.TypeName{Name: "bool"},
  2250. },
  2251. {
  2252. Name: "MD5",
  2253. Args: []*catalog.Argument{
  2254. {
  2255. Type: &ast.TypeName{Name: "text"},
  2256. },
  2257. },
  2258. ReturnType: &ast.TypeName{Name: "text"},
  2259. },
  2260. {
  2261. Name: "MICROSECOND",
  2262. Args: []*catalog.Argument{
  2263. {
  2264. Type: &ast.TypeName{Name: "time"},
  2265. },
  2266. },
  2267. ReturnType: &ast.TypeName{Name: "int"},
  2268. },
  2269. {
  2270. Name: "MID",
  2271. Args: []*catalog.Argument{
  2272. {
  2273. Type: &ast.TypeName{Name: "text"},
  2274. },
  2275. {
  2276. Type: &ast.TypeName{Name: "int"},
  2277. },
  2278. {
  2279. Type: &ast.TypeName{Name: "int"},
  2280. },
  2281. },
  2282. ReturnType: &ast.TypeName{Name: "text"},
  2283. },
  2284. {
  2285. Name: "MIN",
  2286. Args: []*catalog.Argument{
  2287. {
  2288. Type: &ast.TypeName{Name: "any"},
  2289. },
  2290. },
  2291. ReturnType: &ast.TypeName{Name: "any"},
  2292. },
  2293. {
  2294. Name: "MINUTE",
  2295. Args: []*catalog.Argument{
  2296. {
  2297. Type: &ast.TypeName{Name: "time"},
  2298. },
  2299. },
  2300. ReturnType: &ast.TypeName{Name: "int"},
  2301. },
  2302. {
  2303. Name: "MOD",
  2304. Args: []*catalog.Argument{
  2305. {
  2306. Type: &ast.TypeName{Name: "int"},
  2307. },
  2308. {
  2309. Type: &ast.TypeName{Name: "int"},
  2310. },
  2311. },
  2312. ReturnType: &ast.TypeName{Name: "int"},
  2313. },
  2314. {
  2315. Name: "MONTH",
  2316. Args: []*catalog.Argument{
  2317. {
  2318. Type: &ast.TypeName{Name: "date"},
  2319. },
  2320. },
  2321. ReturnType: &ast.TypeName{Name: "int"},
  2322. },
  2323. {
  2324. Name: "MONTHNAME",
  2325. Args: []*catalog.Argument{
  2326. {
  2327. Type: &ast.TypeName{Name: "date"},
  2328. },
  2329. },
  2330. ReturnType: &ast.TypeName{Name: "text"},
  2331. },
  2332. {
  2333. Name: "MULTILINESTRING",
  2334. Args: []*catalog.Argument{
  2335. {
  2336. Type: &ast.TypeName{Name: "any"},
  2337. },
  2338. {
  2339. Type: &ast.TypeName{Name: "any"},
  2340. Mode: ast.FuncParamVariadic,
  2341. },
  2342. },
  2343. ReturnType: &ast.TypeName{Name: "any"},
  2344. },
  2345. {
  2346. Name: "MULTIPOINT",
  2347. Args: []*catalog.Argument{
  2348. {
  2349. Type: &ast.TypeName{Name: "any"},
  2350. },
  2351. {
  2352. Type: &ast.TypeName{Name: "any"},
  2353. Mode: ast.FuncParamVariadic,
  2354. },
  2355. },
  2356. ReturnType: &ast.TypeName{Name: "any"},
  2357. },
  2358. {
  2359. Name: "MULTIPOLYGON",
  2360. Args: []*catalog.Argument{
  2361. {
  2362. Type: &ast.TypeName{Name: "any"},
  2363. },
  2364. {
  2365. Type: &ast.TypeName{Name: "any"},
  2366. Mode: ast.FuncParamVariadic,
  2367. },
  2368. },
  2369. ReturnType: &ast.TypeName{Name: "any"},
  2370. },
  2371. {
  2372. Name: "NAME_CONST",
  2373. Args: []*catalog.Argument{
  2374. {
  2375. Type: &ast.TypeName{Name: "any"},
  2376. },
  2377. {
  2378. Type: &ast.TypeName{Name: "any"},
  2379. },
  2380. },
  2381. ReturnType: &ast.TypeName{Name: "any"},
  2382. },
  2383. {
  2384. Name: "NOW",
  2385. Args: []*catalog.Argument{},
  2386. ReturnType: &ast.TypeName{Name: "datetime"},
  2387. },
  2388. {
  2389. Name: "NOW",
  2390. Args: []*catalog.Argument{
  2391. {
  2392. Type: &ast.TypeName{Name: "int"},
  2393. },
  2394. },
  2395. ReturnType: &ast.TypeName{Name: "datetime"},
  2396. },
  2397. {
  2398. Name: "NTH_VALUE",
  2399. Args: []*catalog.Argument{
  2400. {
  2401. Type: &ast.TypeName{Name: "any"},
  2402. },
  2403. {
  2404. Type: &ast.TypeName{Name: "int"},
  2405. },
  2406. },
  2407. ReturnType: &ast.TypeName{Name: "any"},
  2408. },
  2409. {
  2410. Name: "NTILE",
  2411. Args: []*catalog.Argument{
  2412. {
  2413. Type: &ast.TypeName{Name: "int"},
  2414. },
  2415. },
  2416. ReturnType: &ast.TypeName{Name: "int"},
  2417. },
  2418. {
  2419. Name: "NULLIF",
  2420. Args: []*catalog.Argument{
  2421. {
  2422. Type: &ast.TypeName{Name: "any"},
  2423. },
  2424. {
  2425. Type: &ast.TypeName{Name: "any"},
  2426. },
  2427. },
  2428. ReturnType: &ast.TypeName{Name: "any"},
  2429. },
  2430. {
  2431. Name: "OCT",
  2432. Args: []*catalog.Argument{
  2433. {
  2434. Type: &ast.TypeName{Name: "bigint"},
  2435. },
  2436. },
  2437. ReturnType: &ast.TypeName{Name: "text"},
  2438. },
  2439. {
  2440. Name: "OCTET_LENGTH",
  2441. Args: []*catalog.Argument{
  2442. {
  2443. Type: &ast.TypeName{Name: "text"},
  2444. },
  2445. },
  2446. ReturnType: &ast.TypeName{Name: "int"},
  2447. },
  2448. {
  2449. Name: "ORD",
  2450. Args: []*catalog.Argument{
  2451. {
  2452. Type: &ast.TypeName{Name: "text"},
  2453. },
  2454. },
  2455. ReturnType: &ast.TypeName{Name: "int"},
  2456. },
  2457. {
  2458. Name: "PERCENT_RANK",
  2459. Args: []*catalog.Argument{},
  2460. ReturnType: &ast.TypeName{Name: "double precision"},
  2461. },
  2462. {
  2463. Name: "PERIOD_ADD",
  2464. Args: []*catalog.Argument{
  2465. {
  2466. Type: &ast.TypeName{Name: "int"},
  2467. },
  2468. {
  2469. Type: &ast.TypeName{Name: "int"},
  2470. },
  2471. },
  2472. ReturnType: &ast.TypeName{Name: "int"},
  2473. },
  2474. {
  2475. Name: "PERIOD_DIFF",
  2476. Args: []*catalog.Argument{
  2477. {
  2478. Type: &ast.TypeName{Name: "int"},
  2479. },
  2480. {
  2481. Type: &ast.TypeName{Name: "int"},
  2482. },
  2483. },
  2484. ReturnType: &ast.TypeName{Name: "int"},
  2485. },
  2486. {
  2487. Name: "PI",
  2488. Args: []*catalog.Argument{},
  2489. ReturnType: &ast.TypeName{Name: "double precision"},
  2490. },
  2491. {
  2492. Name: "POINT",
  2493. Args: []*catalog.Argument{
  2494. {
  2495. Type: &ast.TypeName{Name: "double precision"},
  2496. },
  2497. {
  2498. Type: &ast.TypeName{Name: "double precision"},
  2499. },
  2500. },
  2501. ReturnType: &ast.TypeName{Name: "any"},
  2502. },
  2503. {
  2504. Name: "POLYGON",
  2505. Args: []*catalog.Argument{
  2506. {
  2507. Type: &ast.TypeName{Name: "any"},
  2508. },
  2509. {
  2510. Type: &ast.TypeName{Name: "any"},
  2511. Mode: ast.FuncParamVariadic,
  2512. },
  2513. },
  2514. ReturnType: &ast.TypeName{Name: "any"},
  2515. },
  2516. {
  2517. Name: "POSITION",
  2518. Args: []*catalog.Argument{
  2519. {
  2520. Type: &ast.TypeName{Name: "text"},
  2521. },
  2522. {
  2523. Type: &ast.TypeName{Name: "text"},
  2524. },
  2525. },
  2526. ReturnType: &ast.TypeName{Name: "int"},
  2527. },
  2528. {
  2529. Name: "POW",
  2530. Args: []*catalog.Argument{
  2531. {
  2532. Type: &ast.TypeName{Name: "double precision"},
  2533. },
  2534. {
  2535. Type: &ast.TypeName{Name: "double precision"},
  2536. },
  2537. },
  2538. ReturnType: &ast.TypeName{Name: "double precision"},
  2539. },
  2540. {
  2541. Name: "POWER",
  2542. Args: []*catalog.Argument{
  2543. {
  2544. Type: &ast.TypeName{Name: "double precision"},
  2545. },
  2546. {
  2547. Type: &ast.TypeName{Name: "double precision"},
  2548. },
  2549. },
  2550. ReturnType: &ast.TypeName{Name: "double precision"},
  2551. },
  2552. {
  2553. Name: "PS_CURRENT_THREAD_ID",
  2554. Args: []*catalog.Argument{},
  2555. ReturnType: &ast.TypeName{Name: "int"},
  2556. },
  2557. {
  2558. Name: "PS_THREAD_ID",
  2559. Args: []*catalog.Argument{
  2560. {
  2561. Type: &ast.TypeName{Name: "int"},
  2562. },
  2563. },
  2564. ReturnType: &ast.TypeName{Name: "int"},
  2565. },
  2566. {
  2567. Name: "QUARTER",
  2568. Args: []*catalog.Argument{
  2569. {
  2570. Type: &ast.TypeName{Name: "date"},
  2571. },
  2572. },
  2573. ReturnType: &ast.TypeName{Name: "int"},
  2574. },
  2575. {
  2576. Name: "QUOTE",
  2577. Args: []*catalog.Argument{
  2578. {
  2579. Type: &ast.TypeName{Name: "text"},
  2580. },
  2581. },
  2582. ReturnType: &ast.TypeName{Name: "text"},
  2583. },
  2584. {
  2585. Name: "RADIANS",
  2586. Args: []*catalog.Argument{
  2587. {
  2588. Type: &ast.TypeName{Name: "int"},
  2589. },
  2590. },
  2591. ReturnType: &ast.TypeName{Name: "double precision"},
  2592. },
  2593. {
  2594. Name: "RAND",
  2595. Args: []*catalog.Argument{},
  2596. ReturnType: &ast.TypeName{Name: "double precision"},
  2597. },
  2598. {
  2599. Name: "RAND",
  2600. Args: []*catalog.Argument{
  2601. {
  2602. Type: &ast.TypeName{Name: "int"},
  2603. },
  2604. },
  2605. ReturnType: &ast.TypeName{Name: "double precision"},
  2606. },
  2607. {
  2608. Name: "RANDOM_BYTES",
  2609. Args: []*catalog.Argument{
  2610. {
  2611. Type: &ast.TypeName{Name: "int"},
  2612. },
  2613. },
  2614. ReturnType: &ast.TypeName{Name: "binary"},
  2615. },
  2616. {
  2617. Name: "RANK",
  2618. Args: []*catalog.Argument{},
  2619. ReturnType: &ast.TypeName{Name: "int"},
  2620. },
  2621. {
  2622. Name: "REGEXP_INSTR",
  2623. Args: []*catalog.Argument{
  2624. {
  2625. Type: &ast.TypeName{Name: "text"},
  2626. },
  2627. {
  2628. Type: &ast.TypeName{Name: "text"},
  2629. },
  2630. {
  2631. Type: &ast.TypeName{Name: "int"},
  2632. HasDefault: true,
  2633. },
  2634. {
  2635. Type: &ast.TypeName{Name: "int"},
  2636. HasDefault: true,
  2637. },
  2638. {
  2639. Type: &ast.TypeName{Name: "int"},
  2640. HasDefault: true,
  2641. },
  2642. {
  2643. Type: &ast.TypeName{Name: "text"},
  2644. HasDefault: true,
  2645. },
  2646. },
  2647. ReturnType: &ast.TypeName{Name: "int"},
  2648. },
  2649. {
  2650. Name: "REGEXP_LIKE",
  2651. Args: []*catalog.Argument{
  2652. {
  2653. Type: &ast.TypeName{Name: "text"},
  2654. },
  2655. {
  2656. Type: &ast.TypeName{Name: "text"},
  2657. },
  2658. {
  2659. Type: &ast.TypeName{Name: "text"},
  2660. HasDefault: true,
  2661. },
  2662. },
  2663. ReturnType: &ast.TypeName{Name: "bool"},
  2664. },
  2665. {
  2666. Name: "REGEXP_REPLACE",
  2667. Args: []*catalog.Argument{
  2668. {
  2669. Type: &ast.TypeName{Name: "text"},
  2670. },
  2671. {
  2672. Type: &ast.TypeName{Name: "text"},
  2673. },
  2674. {
  2675. Type: &ast.TypeName{Name: "text"},
  2676. },
  2677. {
  2678. Type: &ast.TypeName{Name: "int"},
  2679. HasDefault: true,
  2680. },
  2681. {
  2682. Type: &ast.TypeName{Name: "int"},
  2683. HasDefault: true,
  2684. },
  2685. {
  2686. Type: &ast.TypeName{Name: "text"},
  2687. HasDefault: true,
  2688. },
  2689. },
  2690. ReturnType: &ast.TypeName{Name: "text"},
  2691. },
  2692. {
  2693. Name: "REGEXP_SUBSTR",
  2694. Args: []*catalog.Argument{
  2695. {
  2696. Type: &ast.TypeName{Name: "text"},
  2697. },
  2698. {
  2699. Type: &ast.TypeName{Name: "text"},
  2700. },
  2701. {
  2702. Type: &ast.TypeName{Name: "int"},
  2703. HasDefault: true,
  2704. },
  2705. {
  2706. Type: &ast.TypeName{Name: "int"},
  2707. HasDefault: true,
  2708. },
  2709. {
  2710. Type: &ast.TypeName{Name: "text"},
  2711. HasDefault: true,
  2712. },
  2713. },
  2714. ReturnType: &ast.TypeName{Name: "text"},
  2715. },
  2716. {
  2717. Name: "RELEASE_ALL_LOCKS",
  2718. Args: []*catalog.Argument{},
  2719. ReturnType: &ast.TypeName{Name: "int"},
  2720. },
  2721. {
  2722. Name: "RELEASE_LOCK",
  2723. Args: []*catalog.Argument{
  2724. {
  2725. Type: &ast.TypeName{Name: "text"},
  2726. },
  2727. },
  2728. ReturnType: &ast.TypeName{Name: "bool"},
  2729. },
  2730. {
  2731. Name: "REPEAT",
  2732. Args: []*catalog.Argument{
  2733. {
  2734. Type: &ast.TypeName{Name: "text"},
  2735. },
  2736. {
  2737. Type: &ast.TypeName{Name: "int"},
  2738. },
  2739. },
  2740. ReturnType: &ast.TypeName{Name: "text"},
  2741. },
  2742. {
  2743. Name: "REPLACE",
  2744. Args: []*catalog.Argument{
  2745. {
  2746. Type: &ast.TypeName{Name: "text"},
  2747. },
  2748. {
  2749. Type: &ast.TypeName{Name: "text"},
  2750. },
  2751. {
  2752. Type: &ast.TypeName{Name: "text"},
  2753. },
  2754. },
  2755. ReturnType: &ast.TypeName{Name: "text"},
  2756. },
  2757. {
  2758. Name: "REVERSE",
  2759. Args: []*catalog.Argument{
  2760. {
  2761. Type: &ast.TypeName{Name: "text"},
  2762. },
  2763. },
  2764. ReturnType: &ast.TypeName{Name: "text"},
  2765. },
  2766. {
  2767. Name: "RIGHT",
  2768. Args: []*catalog.Argument{
  2769. {
  2770. Type: &ast.TypeName{Name: "text"},
  2771. },
  2772. {
  2773. Type: &ast.TypeName{Name: "int"},
  2774. },
  2775. },
  2776. ReturnType: &ast.TypeName{Name: "text"},
  2777. },
  2778. {
  2779. Name: "ROLES_GRAPHML",
  2780. Args: []*catalog.Argument{},
  2781. ReturnType: &ast.TypeName{Name: "text"},
  2782. },
  2783. {
  2784. Name: "ROUND",
  2785. Args: []*catalog.Argument{
  2786. {
  2787. Type: &ast.TypeName{Name: "double precision"},
  2788. },
  2789. },
  2790. ReturnType: &ast.TypeName{Name: "double precision"},
  2791. },
  2792. {
  2793. Name: "ROUND",
  2794. Args: []*catalog.Argument{
  2795. {
  2796. Type: &ast.TypeName{Name: "double precision"},
  2797. },
  2798. {
  2799. Type: &ast.TypeName{Name: "double precision"},
  2800. },
  2801. },
  2802. ReturnType: &ast.TypeName{Name: "double precision"},
  2803. },
  2804. {
  2805. Name: "ROW_COUNT",
  2806. Args: []*catalog.Argument{},
  2807. ReturnType: &ast.TypeName{Name: "bigint"},
  2808. },
  2809. {
  2810. Name: "ROW_NUMBER",
  2811. Args: []*catalog.Argument{},
  2812. ReturnType: &ast.TypeName{Name: "int"},
  2813. },
  2814. {
  2815. Name: "RPAD",
  2816. Args: []*catalog.Argument{
  2817. {
  2818. Type: &ast.TypeName{Name: "text"},
  2819. },
  2820. {
  2821. Type: &ast.TypeName{Name: "int"},
  2822. },
  2823. {
  2824. Type: &ast.TypeName{Name: "text"},
  2825. },
  2826. },
  2827. ReturnType: &ast.TypeName{Name: "text"},
  2828. },
  2829. {
  2830. Name: "RTRIM",
  2831. Args: []*catalog.Argument{
  2832. {
  2833. Type: &ast.TypeName{Name: "text"},
  2834. },
  2835. },
  2836. ReturnType: &ast.TypeName{Name: "text"},
  2837. },
  2838. {
  2839. Name: "SCHEMA",
  2840. Args: []*catalog.Argument{},
  2841. ReturnType: &ast.TypeName{Name: "text"},
  2842. },
  2843. {
  2844. Name: "SECOND",
  2845. Args: []*catalog.Argument{
  2846. {
  2847. Type: &ast.TypeName{Name: "time"},
  2848. },
  2849. },
  2850. ReturnType: &ast.TypeName{Name: "int"},
  2851. },
  2852. {
  2853. Name: "SEC_TO_TIME",
  2854. Args: []*catalog.Argument{
  2855. {
  2856. Type: &ast.TypeName{Name: "int"},
  2857. },
  2858. },
  2859. ReturnType: &ast.TypeName{Name: "time"},
  2860. },
  2861. {
  2862. Name: "SESSION_USER",
  2863. Args: []*catalog.Argument{},
  2864. ReturnType: &ast.TypeName{Name: "text"},
  2865. },
  2866. {
  2867. Name: "SHA",
  2868. Args: []*catalog.Argument{
  2869. {
  2870. Type: &ast.TypeName{Name: "text"},
  2871. },
  2872. },
  2873. ReturnType: &ast.TypeName{Name: "text"},
  2874. },
  2875. {
  2876. Name: "SHA1",
  2877. Args: []*catalog.Argument{
  2878. {
  2879. Type: &ast.TypeName{Name: "text"},
  2880. },
  2881. },
  2882. ReturnType: &ast.TypeName{Name: "text"},
  2883. },
  2884. {
  2885. Name: "SHA2",
  2886. Args: []*catalog.Argument{
  2887. {
  2888. Type: &ast.TypeName{Name: "text"},
  2889. },
  2890. {
  2891. Type: &ast.TypeName{Name: "int"},
  2892. },
  2893. },
  2894. ReturnType: &ast.TypeName{Name: "text"},
  2895. },
  2896. {
  2897. Name: "SIGN",
  2898. Args: []*catalog.Argument{
  2899. {
  2900. Type: &ast.TypeName{Name: "double precision"},
  2901. },
  2902. },
  2903. ReturnType: &ast.TypeName{Name: "int"},
  2904. },
  2905. {
  2906. Name: "SIN",
  2907. Args: []*catalog.Argument{
  2908. {
  2909. Type: &ast.TypeName{Name: "double precision"},
  2910. },
  2911. },
  2912. ReturnType: &ast.TypeName{Name: "double precision"},
  2913. },
  2914. {
  2915. Name: "SLEEP",
  2916. Args: []*catalog.Argument{
  2917. {
  2918. Type: &ast.TypeName{Name: "int"},
  2919. },
  2920. },
  2921. ReturnType: &ast.TypeName{Name: "int"},
  2922. },
  2923. {
  2924. Name: "SOUNDEX",
  2925. Args: []*catalog.Argument{
  2926. {
  2927. Type: &ast.TypeName{Name: "text"},
  2928. },
  2929. },
  2930. ReturnType: &ast.TypeName{Name: "text"},
  2931. },
  2932. {
  2933. Name: "SPACE",
  2934. Args: []*catalog.Argument{
  2935. {
  2936. Type: &ast.TypeName{Name: "int"},
  2937. },
  2938. },
  2939. ReturnType: &ast.TypeName{Name: "text"},
  2940. },
  2941. {
  2942. Name: "SQRT",
  2943. Args: []*catalog.Argument{
  2944. {
  2945. Type: &ast.TypeName{Name: "double precision"},
  2946. },
  2947. },
  2948. ReturnType: &ast.TypeName{Name: "double precision"},
  2949. },
  2950. {
  2951. Name: "STATEMENT_DIGEST",
  2952. Args: []*catalog.Argument{
  2953. {
  2954. Type: &ast.TypeName{Name: "text"},
  2955. },
  2956. },
  2957. ReturnType: &ast.TypeName{Name: "text"},
  2958. },
  2959. {
  2960. Name: "STATEMENT_DIGEST_TEXT",
  2961. Args: []*catalog.Argument{
  2962. {
  2963. Type: &ast.TypeName{Name: "text"},
  2964. },
  2965. },
  2966. ReturnType: &ast.TypeName{Name: "text"},
  2967. },
  2968. {
  2969. Name: "STD",
  2970. Args: []*catalog.Argument{
  2971. {
  2972. Type: &ast.TypeName{Name: "any"},
  2973. },
  2974. },
  2975. ReturnType: &ast.TypeName{Name: "any"},
  2976. },
  2977. {
  2978. Name: "STDDEV",
  2979. Args: []*catalog.Argument{
  2980. {
  2981. Type: &ast.TypeName{Name: "any"},
  2982. },
  2983. },
  2984. ReturnType: &ast.TypeName{Name: "any"},
  2985. },
  2986. {
  2987. Name: "STDDEV_POP",
  2988. Args: []*catalog.Argument{
  2989. {
  2990. Type: &ast.TypeName{Name: "any"},
  2991. },
  2992. },
  2993. ReturnType: &ast.TypeName{Name: "any"},
  2994. },
  2995. {
  2996. Name: "STDDEV_SAMP",
  2997. Args: []*catalog.Argument{
  2998. {
  2999. Type: &ast.TypeName{Name: "any"},
  3000. },
  3001. },
  3002. ReturnType: &ast.TypeName{Name: "any"},
  3003. },
  3004. {
  3005. Name: "STRCMP",
  3006. Args: []*catalog.Argument{
  3007. {
  3008. Type: &ast.TypeName{Name: "text"},
  3009. },
  3010. {
  3011. Type: &ast.TypeName{Name: "text"},
  3012. },
  3013. },
  3014. ReturnType: &ast.TypeName{Name: "tinyint"},
  3015. },
  3016. {
  3017. Name: "STR_TO_DATE",
  3018. Args: []*catalog.Argument{
  3019. {
  3020. Type: &ast.TypeName{Name: "text"},
  3021. },
  3022. {
  3023. Type: &ast.TypeName{Name: "text"},
  3024. },
  3025. },
  3026. ReturnType: &ast.TypeName{Name: "datetime"},
  3027. },
  3028. {
  3029. Name: "ST_AREA",
  3030. Args: []*catalog.Argument{
  3031. {
  3032. Type: &ast.TypeName{Name: "any"},
  3033. },
  3034. },
  3035. ReturnType: &ast.TypeName{Name: "double precision"},
  3036. },
  3037. {
  3038. Name: "ST_ASBINARY",
  3039. Args: []*catalog.Argument{
  3040. {
  3041. Type: &ast.TypeName{Name: "any"},
  3042. },
  3043. },
  3044. ReturnType: &ast.TypeName{Name: "binary"},
  3045. },
  3046. {
  3047. Name: "ST_ASBINARY",
  3048. Args: []*catalog.Argument{
  3049. {
  3050. Type: &ast.TypeName{Name: "any"},
  3051. },
  3052. {
  3053. Type: &ast.TypeName{Name: "text"},
  3054. },
  3055. },
  3056. ReturnType: &ast.TypeName{Name: "binary"},
  3057. },
  3058. {
  3059. Name: "ST_ASGEOJSON",
  3060. Args: []*catalog.Argument{
  3061. {
  3062. Type: &ast.TypeName{Name: "any"},
  3063. },
  3064. },
  3065. ReturnType: &ast.TypeName{Name: "json"},
  3066. },
  3067. {
  3068. Name: "ST_ASGEOJSON",
  3069. Args: []*catalog.Argument{
  3070. {
  3071. Type: &ast.TypeName{Name: "any"},
  3072. },
  3073. {
  3074. Type: &ast.TypeName{Name: "int"},
  3075. },
  3076. },
  3077. ReturnType: &ast.TypeName{Name: "json"},
  3078. },
  3079. {
  3080. Name: "ST_ASGEOJSON",
  3081. Args: []*catalog.Argument{
  3082. {
  3083. Type: &ast.TypeName{Name: "any"},
  3084. },
  3085. {
  3086. Type: &ast.TypeName{Name: "int"},
  3087. },
  3088. {
  3089. Type: &ast.TypeName{Name: "tinyint"},
  3090. },
  3091. },
  3092. ReturnType: &ast.TypeName{Name: "json"},
  3093. },
  3094. {
  3095. Name: "ST_ASTEXT",
  3096. Args: []*catalog.Argument{
  3097. {
  3098. Type: &ast.TypeName{Name: "any"},
  3099. },
  3100. },
  3101. ReturnType: &ast.TypeName{Name: "text"},
  3102. },
  3103. {
  3104. Name: "ST_ASTEXT",
  3105. Args: []*catalog.Argument{
  3106. {
  3107. Type: &ast.TypeName{Name: "any"},
  3108. },
  3109. {
  3110. Type: &ast.TypeName{Name: "text"},
  3111. },
  3112. },
  3113. ReturnType: &ast.TypeName{Name: "text"},
  3114. },
  3115. {
  3116. Name: "ST_ASWKB",
  3117. Args: []*catalog.Argument{
  3118. {
  3119. Type: &ast.TypeName{Name: "any"},
  3120. },
  3121. },
  3122. ReturnType: &ast.TypeName{Name: "binary"},
  3123. },
  3124. {
  3125. Name: "ST_ASWKB",
  3126. Args: []*catalog.Argument{
  3127. {
  3128. Type: &ast.TypeName{Name: "any"},
  3129. },
  3130. {
  3131. Type: &ast.TypeName{Name: "text"},
  3132. },
  3133. },
  3134. ReturnType: &ast.TypeName{Name: "binary"},
  3135. },
  3136. {
  3137. Name: "ST_ASWKT",
  3138. Args: []*catalog.Argument{
  3139. {
  3140. Type: &ast.TypeName{Name: "any"},
  3141. },
  3142. },
  3143. ReturnType: &ast.TypeName{Name: "text"},
  3144. },
  3145. {
  3146. Name: "ST_ASWKT",
  3147. Args: []*catalog.Argument{
  3148. {
  3149. Type: &ast.TypeName{Name: "any"},
  3150. },
  3151. {
  3152. Type: &ast.TypeName{Name: "text"},
  3153. },
  3154. },
  3155. ReturnType: &ast.TypeName{Name: "text"},
  3156. },
  3157. {
  3158. Name: "ST_BUFFER",
  3159. Args: []*catalog.Argument{
  3160. {
  3161. Type: &ast.TypeName{Name: "any"},
  3162. },
  3163. {
  3164. Type: &ast.TypeName{Name: "double precision"},
  3165. },
  3166. },
  3167. ReturnType: &ast.TypeName{Name: "any"},
  3168. },
  3169. {
  3170. Name: "ST_BUFFER",
  3171. Args: []*catalog.Argument{
  3172. {
  3173. Type: &ast.TypeName{Name: "any"},
  3174. },
  3175. {
  3176. Type: &ast.TypeName{Name: "double precision"},
  3177. },
  3178. {
  3179. Type: &ast.TypeName{Name: "binary"},
  3180. },
  3181. },
  3182. ReturnType: &ast.TypeName{Name: "any"},
  3183. },
  3184. {
  3185. Name: "ST_BUFFER",
  3186. Args: []*catalog.Argument{
  3187. {
  3188. Type: &ast.TypeName{Name: "any"},
  3189. },
  3190. {
  3191. Type: &ast.TypeName{Name: "double precision"},
  3192. },
  3193. {
  3194. Type: &ast.TypeName{Name: "binary"},
  3195. },
  3196. {
  3197. Type: &ast.TypeName{Name: "binary"},
  3198. },
  3199. },
  3200. ReturnType: &ast.TypeName{Name: "any"},
  3201. },
  3202. {
  3203. Name: "ST_BUFFER",
  3204. Args: []*catalog.Argument{
  3205. {
  3206. Type: &ast.TypeName{Name: "any"},
  3207. },
  3208. {
  3209. Type: &ast.TypeName{Name: "double precision"},
  3210. },
  3211. {
  3212. Type: &ast.TypeName{Name: "binary"},
  3213. },
  3214. {
  3215. Type: &ast.TypeName{Name: "binary"},
  3216. },
  3217. {
  3218. Type: &ast.TypeName{Name: "binary"},
  3219. },
  3220. },
  3221. ReturnType: &ast.TypeName{Name: "any"},
  3222. },
  3223. {
  3224. Name: "ST_BUFFER_STRATEGY",
  3225. Args: []*catalog.Argument{
  3226. {
  3227. Type: &ast.TypeName{Name: "text"},
  3228. },
  3229. },
  3230. ReturnType: &ast.TypeName{Name: "binary"},
  3231. },
  3232. {
  3233. Name: "ST_BUFFER_STRATEGY",
  3234. Args: []*catalog.Argument{
  3235. {
  3236. Type: &ast.TypeName{Name: "text"},
  3237. },
  3238. {
  3239. Type: &ast.TypeName{Name: "int"},
  3240. },
  3241. },
  3242. ReturnType: &ast.TypeName{Name: "binary"},
  3243. },
  3244. {
  3245. Name: "ST_CENTROID",
  3246. Args: []*catalog.Argument{
  3247. {
  3248. Type: &ast.TypeName{Name: "any"},
  3249. },
  3250. },
  3251. ReturnType: &ast.TypeName{Name: "any"},
  3252. },
  3253. {
  3254. Name: "ST_CONTAINS",
  3255. Args: []*catalog.Argument{
  3256. {
  3257. Type: &ast.TypeName{Name: "any"},
  3258. },
  3259. {
  3260. Type: &ast.TypeName{Name: "any"},
  3261. },
  3262. },
  3263. ReturnType: &ast.TypeName{Name: "bool"},
  3264. },
  3265. {
  3266. Name: "ST_CONVEXHULL",
  3267. Args: []*catalog.Argument{
  3268. {
  3269. Type: &ast.TypeName{Name: "any"},
  3270. },
  3271. },
  3272. ReturnType: &ast.TypeName{Name: "any"},
  3273. },
  3274. {
  3275. Name: "ST_CROSSES",
  3276. Args: []*catalog.Argument{
  3277. {
  3278. Type: &ast.TypeName{Name: "any"},
  3279. },
  3280. {
  3281. Type: &ast.TypeName{Name: "any"},
  3282. },
  3283. },
  3284. ReturnType: &ast.TypeName{Name: "bool"},
  3285. },
  3286. {
  3287. Name: "ST_DIFFERENCE",
  3288. Args: []*catalog.Argument{
  3289. {
  3290. Type: &ast.TypeName{Name: "any"},
  3291. },
  3292. {
  3293. Type: &ast.TypeName{Name: "any"},
  3294. },
  3295. },
  3296. ReturnType: &ast.TypeName{Name: "any"},
  3297. },
  3298. {
  3299. Name: "ST_DIMENSION",
  3300. Args: []*catalog.Argument{
  3301. {
  3302. Type: &ast.TypeName{Name: "any"},
  3303. },
  3304. },
  3305. ReturnType: &ast.TypeName{Name: "tinyint"},
  3306. },
  3307. {
  3308. Name: "ST_DISJOINT",
  3309. Args: []*catalog.Argument{
  3310. {
  3311. Type: &ast.TypeName{Name: "any"},
  3312. },
  3313. {
  3314. Type: &ast.TypeName{Name: "any"},
  3315. },
  3316. },
  3317. ReturnType: &ast.TypeName{Name: "bool"},
  3318. },
  3319. {
  3320. Name: "ST_DISTANCE",
  3321. Args: []*catalog.Argument{
  3322. {
  3323. Type: &ast.TypeName{Name: "any"},
  3324. },
  3325. {
  3326. Type: &ast.TypeName{Name: "any"},
  3327. },
  3328. },
  3329. ReturnType: &ast.TypeName{Name: "double precision"},
  3330. },
  3331. {
  3332. Name: "ST_DISTANCE",
  3333. Args: []*catalog.Argument{
  3334. {
  3335. Type: &ast.TypeName{Name: "any"},
  3336. },
  3337. {
  3338. Type: &ast.TypeName{Name: "any"},
  3339. },
  3340. {
  3341. Type: &ast.TypeName{Name: "text"},
  3342. },
  3343. },
  3344. ReturnType: &ast.TypeName{Name: "double precision"},
  3345. },
  3346. {
  3347. Name: "ST_DISTANCE_SPHERE",
  3348. Args: []*catalog.Argument{
  3349. {
  3350. Type: &ast.TypeName{Name: "any"},
  3351. },
  3352. {
  3353. Type: &ast.TypeName{Name: "any"},
  3354. },
  3355. },
  3356. ReturnType: &ast.TypeName{Name: "double precision"},
  3357. },
  3358. {
  3359. Name: "ST_DISTANCE_SPHERE",
  3360. Args: []*catalog.Argument{
  3361. {
  3362. Type: &ast.TypeName{Name: "any"},
  3363. },
  3364. {
  3365. Type: &ast.TypeName{Name: "any"},
  3366. },
  3367. {
  3368. Type: &ast.TypeName{Name: "int"},
  3369. },
  3370. },
  3371. ReturnType: &ast.TypeName{Name: "double precision"},
  3372. },
  3373. {
  3374. Name: "ST_ENDPOINT",
  3375. Args: []*catalog.Argument{
  3376. {
  3377. Type: &ast.TypeName{Name: "any"},
  3378. },
  3379. },
  3380. ReturnType: &ast.TypeName{Name: "any"},
  3381. },
  3382. {
  3383. Name: "ST_ENVELOPE",
  3384. Args: []*catalog.Argument{
  3385. {
  3386. Type: &ast.TypeName{Name: "any"},
  3387. },
  3388. },
  3389. ReturnType: &ast.TypeName{Name: "any"},
  3390. },
  3391. {
  3392. Name: "ST_EQUALS",
  3393. Args: []*catalog.Argument{
  3394. {
  3395. Type: &ast.TypeName{Name: "any"},
  3396. },
  3397. {
  3398. Type: &ast.TypeName{Name: "any"},
  3399. },
  3400. },
  3401. ReturnType: &ast.TypeName{Name: "bool"},
  3402. },
  3403. {
  3404. Name: "ST_EXTERIORRING",
  3405. Args: []*catalog.Argument{
  3406. {
  3407. Type: &ast.TypeName{Name: "any"},
  3408. },
  3409. },
  3410. ReturnType: &ast.TypeName{Name: "any"},
  3411. },
  3412. {
  3413. Name: "ST_FRECHET_DISTANCE",
  3414. Args: []*catalog.Argument{
  3415. {
  3416. Type: &ast.TypeName{Name: "any"},
  3417. },
  3418. {
  3419. Type: &ast.TypeName{Name: "any"},
  3420. },
  3421. },
  3422. ReturnType: &ast.TypeName{Name: "double precision"},
  3423. },
  3424. {
  3425. Name: "ST_FRECHET_DISTANCE",
  3426. Args: []*catalog.Argument{
  3427. {
  3428. Type: &ast.TypeName{Name: "any"},
  3429. },
  3430. {
  3431. Type: &ast.TypeName{Name: "any"},
  3432. },
  3433. {
  3434. Type: &ast.TypeName{Name: "text"},
  3435. },
  3436. },
  3437. ReturnType: &ast.TypeName{Name: "double precision"},
  3438. },
  3439. {
  3440. Name: "ST_GEOHASH",
  3441. Args: []*catalog.Argument{
  3442. {
  3443. Type: &ast.TypeName{Name: "double precision"},
  3444. },
  3445. {
  3446. Type: &ast.TypeName{Name: "double precision"},
  3447. },
  3448. {
  3449. Type: &ast.TypeName{Name: "int"},
  3450. },
  3451. },
  3452. ReturnType: &ast.TypeName{Name: "text"},
  3453. },
  3454. {
  3455. Name: "ST_GEOHASH",
  3456. Args: []*catalog.Argument{
  3457. {
  3458. Type: &ast.TypeName{Name: "any"},
  3459. },
  3460. {
  3461. Type: &ast.TypeName{Name: "int"},
  3462. },
  3463. },
  3464. ReturnType: &ast.TypeName{Name: "text"},
  3465. },
  3466. {
  3467. Name: "ST_GEOMCOLLFROMTEXT",
  3468. Args: []*catalog.Argument{
  3469. {
  3470. Type: &ast.TypeName{Name: "text"},
  3471. },
  3472. },
  3473. ReturnType: &ast.TypeName{Name: "any"},
  3474. },
  3475. {
  3476. Name: "ST_GEOMCOLLFROMTEXT",
  3477. Args: []*catalog.Argument{
  3478. {
  3479. Type: &ast.TypeName{Name: "text"},
  3480. },
  3481. {
  3482. Type: &ast.TypeName{Name: "int"},
  3483. },
  3484. },
  3485. ReturnType: &ast.TypeName{Name: "any"},
  3486. },
  3487. {
  3488. Name: "ST_GEOMCOLLFROMTEXT",
  3489. Args: []*catalog.Argument{
  3490. {
  3491. Type: &ast.TypeName{Name: "text"},
  3492. },
  3493. {
  3494. Type: &ast.TypeName{Name: "int"},
  3495. },
  3496. {
  3497. Type: &ast.TypeName{Name: "text"},
  3498. },
  3499. },
  3500. ReturnType: &ast.TypeName{Name: "any"},
  3501. },
  3502. {
  3503. Name: "ST_GEOMCOLLFROMTXT",
  3504. Args: []*catalog.Argument{
  3505. {
  3506. Type: &ast.TypeName{Name: "text"},
  3507. },
  3508. },
  3509. ReturnType: &ast.TypeName{Name: "any"},
  3510. },
  3511. {
  3512. Name: "ST_GEOMCOLLFROMTXT",
  3513. Args: []*catalog.Argument{
  3514. {
  3515. Type: &ast.TypeName{Name: "text"},
  3516. },
  3517. {
  3518. Type: &ast.TypeName{Name: "int"},
  3519. },
  3520. },
  3521. ReturnType: &ast.TypeName{Name: "any"},
  3522. },
  3523. {
  3524. Name: "ST_GEOMCOLLFROMTXT",
  3525. Args: []*catalog.Argument{
  3526. {
  3527. Type: &ast.TypeName{Name: "text"},
  3528. },
  3529. {
  3530. Type: &ast.TypeName{Name: "int"},
  3531. },
  3532. {
  3533. Type: &ast.TypeName{Name: "text"},
  3534. },
  3535. },
  3536. ReturnType: &ast.TypeName{Name: "any"},
  3537. },
  3538. {
  3539. Name: "ST_GEOMCOLLFROMWKB",
  3540. Args: []*catalog.Argument{
  3541. {
  3542. Type: &ast.TypeName{Name: "binary"},
  3543. },
  3544. },
  3545. ReturnType: &ast.TypeName{Name: "any"},
  3546. },
  3547. {
  3548. Name: "ST_GEOMCOLLFROMWKB",
  3549. Args: []*catalog.Argument{
  3550. {
  3551. Type: &ast.TypeName{Name: "binary"},
  3552. },
  3553. {
  3554. Type: &ast.TypeName{Name: "int"},
  3555. },
  3556. },
  3557. ReturnType: &ast.TypeName{Name: "any"},
  3558. },
  3559. {
  3560. Name: "ST_GEOMCOLLFROMWKB",
  3561. Args: []*catalog.Argument{
  3562. {
  3563. Type: &ast.TypeName{Name: "binary"},
  3564. },
  3565. {
  3566. Type: &ast.TypeName{Name: "int"},
  3567. },
  3568. {
  3569. Type: &ast.TypeName{Name: "text"},
  3570. },
  3571. },
  3572. ReturnType: &ast.TypeName{Name: "any"},
  3573. },
  3574. {
  3575. Name: "ST_GEOMETRYCOLLECTIONFROMTEXT",
  3576. Args: []*catalog.Argument{
  3577. {
  3578. Type: &ast.TypeName{Name: "text"},
  3579. },
  3580. },
  3581. ReturnType: &ast.TypeName{Name: "any"},
  3582. },
  3583. {
  3584. Name: "ST_GEOMETRYCOLLECTIONFROMTEXT",
  3585. Args: []*catalog.Argument{
  3586. {
  3587. Type: &ast.TypeName{Name: "text"},
  3588. },
  3589. {
  3590. Type: &ast.TypeName{Name: "int"},
  3591. },
  3592. },
  3593. ReturnType: &ast.TypeName{Name: "any"},
  3594. },
  3595. {
  3596. Name: "ST_GEOMETRYCOLLECTIONFROMTEXT",
  3597. Args: []*catalog.Argument{
  3598. {
  3599. Type: &ast.TypeName{Name: "text"},
  3600. },
  3601. {
  3602. Type: &ast.TypeName{Name: "int"},
  3603. },
  3604. {
  3605. Type: &ast.TypeName{Name: "text"},
  3606. },
  3607. },
  3608. ReturnType: &ast.TypeName{Name: "any"},
  3609. },
  3610. {
  3611. Name: "ST_GEOMETRYCOLLECTIONFROMWKB",
  3612. Args: []*catalog.Argument{
  3613. {
  3614. Type: &ast.TypeName{Name: "binary"},
  3615. },
  3616. },
  3617. ReturnType: &ast.TypeName{Name: "any"},
  3618. },
  3619. {
  3620. Name: "ST_GEOMETRYCOLLECTIONFROMWKB",
  3621. Args: []*catalog.Argument{
  3622. {
  3623. Type: &ast.TypeName{Name: "binary"},
  3624. },
  3625. {
  3626. Type: &ast.TypeName{Name: "int"},
  3627. },
  3628. },
  3629. ReturnType: &ast.TypeName{Name: "any"},
  3630. },
  3631. {
  3632. Name: "ST_GEOMETRYCOLLECTIONFROMWKB",
  3633. Args: []*catalog.Argument{
  3634. {
  3635. Type: &ast.TypeName{Name: "binary"},
  3636. },
  3637. {
  3638. Type: &ast.TypeName{Name: "int"},
  3639. },
  3640. {
  3641. Type: &ast.TypeName{Name: "text"},
  3642. },
  3643. },
  3644. ReturnType: &ast.TypeName{Name: "any"},
  3645. },
  3646. {
  3647. Name: "ST_GEOMETRYFROMTEXT",
  3648. Args: []*catalog.Argument{
  3649. {
  3650. Type: &ast.TypeName{Name: "text"},
  3651. },
  3652. },
  3653. ReturnType: &ast.TypeName{Name: "any"},
  3654. },
  3655. {
  3656. Name: "ST_GEOMETRYFROMTEXT",
  3657. Args: []*catalog.Argument{
  3658. {
  3659. Type: &ast.TypeName{Name: "text"},
  3660. },
  3661. {
  3662. Type: &ast.TypeName{Name: "int"},
  3663. },
  3664. },
  3665. ReturnType: &ast.TypeName{Name: "any"},
  3666. },
  3667. {
  3668. Name: "ST_GEOMETRYFROMTEXT",
  3669. Args: []*catalog.Argument{
  3670. {
  3671. Type: &ast.TypeName{Name: "text"},
  3672. },
  3673. {
  3674. Type: &ast.TypeName{Name: "int"},
  3675. },
  3676. {
  3677. Type: &ast.TypeName{Name: "text"},
  3678. },
  3679. },
  3680. ReturnType: &ast.TypeName{Name: "any"},
  3681. },
  3682. {
  3683. Name: "ST_GEOMETRYFROMWKB",
  3684. Args: []*catalog.Argument{
  3685. {
  3686. Type: &ast.TypeName{Name: "binary"},
  3687. },
  3688. },
  3689. ReturnType: &ast.TypeName{Name: "any"},
  3690. },
  3691. {
  3692. Name: "ST_GEOMETRYFROMWKB",
  3693. Args: []*catalog.Argument{
  3694. {
  3695. Type: &ast.TypeName{Name: "binary"},
  3696. },
  3697. {
  3698. Type: &ast.TypeName{Name: "int"},
  3699. },
  3700. },
  3701. ReturnType: &ast.TypeName{Name: "any"},
  3702. },
  3703. {
  3704. Name: "ST_GEOMETRYFROMWKB",
  3705. Args: []*catalog.Argument{
  3706. {
  3707. Type: &ast.TypeName{Name: "binary"},
  3708. },
  3709. {
  3710. Type: &ast.TypeName{Name: "int"},
  3711. },
  3712. {
  3713. Type: &ast.TypeName{Name: "text"},
  3714. },
  3715. },
  3716. ReturnType: &ast.TypeName{Name: "any"},
  3717. },
  3718. {
  3719. Name: "ST_GEOMETRYN",
  3720. Args: []*catalog.Argument{
  3721. {
  3722. Type: &ast.TypeName{Name: "any"},
  3723. },
  3724. {
  3725. Type: &ast.TypeName{Name: "int"},
  3726. },
  3727. },
  3728. ReturnType: &ast.TypeName{Name: "any"},
  3729. },
  3730. {
  3731. Name: "ST_GEOMETRYTYPE",
  3732. Args: []*catalog.Argument{
  3733. {
  3734. Type: &ast.TypeName{Name: "any"},
  3735. },
  3736. },
  3737. ReturnType: &ast.TypeName{Name: "text"},
  3738. },
  3739. {
  3740. Name: "ST_GEOMFROMGEOJSON",
  3741. Args: []*catalog.Argument{
  3742. {
  3743. Type: &ast.TypeName{Name: "text"},
  3744. },
  3745. },
  3746. ReturnType: &ast.TypeName{Name: "any"},
  3747. },
  3748. {
  3749. Name: "ST_GEOMFROMGEOJSON",
  3750. Args: []*catalog.Argument{
  3751. {
  3752. Type: &ast.TypeName{Name: "text"},
  3753. },
  3754. {
  3755. Type: &ast.TypeName{Name: "tinyint"},
  3756. },
  3757. },
  3758. ReturnType: &ast.TypeName{Name: "any"},
  3759. },
  3760. {
  3761. Name: "ST_GEOMFROMGEOJSON",
  3762. Args: []*catalog.Argument{
  3763. {
  3764. Type: &ast.TypeName{Name: "text"},
  3765. },
  3766. {
  3767. Type: &ast.TypeName{Name: "tinyint"},
  3768. },
  3769. {
  3770. Type: &ast.TypeName{Name: "int"},
  3771. },
  3772. },
  3773. ReturnType: &ast.TypeName{Name: "any"},
  3774. },
  3775. {
  3776. Name: "ST_GEOMFROMTEXT",
  3777. Args: []*catalog.Argument{
  3778. {
  3779. Type: &ast.TypeName{Name: "text"},
  3780. },
  3781. },
  3782. ReturnType: &ast.TypeName{Name: "any"},
  3783. },
  3784. {
  3785. Name: "ST_GEOMFROMTEXT",
  3786. Args: []*catalog.Argument{
  3787. {
  3788. Type: &ast.TypeName{Name: "text"},
  3789. },
  3790. {
  3791. Type: &ast.TypeName{Name: "int"},
  3792. },
  3793. },
  3794. ReturnType: &ast.TypeName{Name: "any"},
  3795. },
  3796. {
  3797. Name: "ST_GEOMFROMTEXT",
  3798. Args: []*catalog.Argument{
  3799. {
  3800. Type: &ast.TypeName{Name: "text"},
  3801. },
  3802. {
  3803. Type: &ast.TypeName{Name: "int"},
  3804. },
  3805. {
  3806. Type: &ast.TypeName{Name: "text"},
  3807. },
  3808. },
  3809. ReturnType: &ast.TypeName{Name: "any"},
  3810. },
  3811. {
  3812. Name: "ST_GEOMFROMWKB",
  3813. Args: []*catalog.Argument{
  3814. {
  3815. Type: &ast.TypeName{Name: "binary"},
  3816. },
  3817. },
  3818. ReturnType: &ast.TypeName{Name: "any"},
  3819. },
  3820. {
  3821. Name: "ST_GEOMFROMWKB",
  3822. Args: []*catalog.Argument{
  3823. {
  3824. Type: &ast.TypeName{Name: "binary"},
  3825. },
  3826. {
  3827. Type: &ast.TypeName{Name: "int"},
  3828. },
  3829. },
  3830. ReturnType: &ast.TypeName{Name: "any"},
  3831. },
  3832. {
  3833. Name: "ST_GEOMFROMWKB",
  3834. Args: []*catalog.Argument{
  3835. {
  3836. Type: &ast.TypeName{Name: "binary"},
  3837. },
  3838. {
  3839. Type: &ast.TypeName{Name: "int"},
  3840. },
  3841. {
  3842. Type: &ast.TypeName{Name: "text"},
  3843. },
  3844. },
  3845. ReturnType: &ast.TypeName{Name: "any"},
  3846. },
  3847. {
  3848. Name: "ST_HAUSDORFF_DISTANCE",
  3849. Args: []*catalog.Argument{
  3850. {
  3851. Type: &ast.TypeName{Name: "any"},
  3852. },
  3853. {
  3854. Type: &ast.TypeName{Name: "any"},
  3855. },
  3856. },
  3857. ReturnType: &ast.TypeName{Name: "double precision"},
  3858. },
  3859. {
  3860. Name: "ST_HAUSDORFF_DISTANCE",
  3861. Args: []*catalog.Argument{
  3862. {
  3863. Type: &ast.TypeName{Name: "any"},
  3864. },
  3865. {
  3866. Type: &ast.TypeName{Name: "any"},
  3867. },
  3868. {
  3869. Type: &ast.TypeName{Name: "text"},
  3870. },
  3871. },
  3872. ReturnType: &ast.TypeName{Name: "double precision"},
  3873. },
  3874. {
  3875. Name: "ST_INTERIORRINGN",
  3876. Args: []*catalog.Argument{
  3877. {
  3878. Type: &ast.TypeName{Name: "any"},
  3879. },
  3880. {
  3881. Type: &ast.TypeName{Name: "int"},
  3882. },
  3883. },
  3884. ReturnType: &ast.TypeName{Name: "any"},
  3885. },
  3886. {
  3887. Name: "ST_INTERSECTION",
  3888. Args: []*catalog.Argument{
  3889. {
  3890. Type: &ast.TypeName{Name: "any"},
  3891. },
  3892. {
  3893. Type: &ast.TypeName{Name: "any"},
  3894. },
  3895. },
  3896. ReturnType: &ast.TypeName{Name: "any"},
  3897. },
  3898. {
  3899. Name: "ST_INTERSECTS",
  3900. Args: []*catalog.Argument{
  3901. {
  3902. Type: &ast.TypeName{Name: "any"},
  3903. },
  3904. {
  3905. Type: &ast.TypeName{Name: "any"},
  3906. },
  3907. },
  3908. ReturnType: &ast.TypeName{Name: "bool"},
  3909. },
  3910. {
  3911. Name: "ST_ISCLOSED",
  3912. Args: []*catalog.Argument{
  3913. {
  3914. Type: &ast.TypeName{Name: "any"},
  3915. },
  3916. },
  3917. ReturnType: &ast.TypeName{Name: "bool"},
  3918. },
  3919. {
  3920. Name: "ST_ISEMPTY",
  3921. Args: []*catalog.Argument{
  3922. {
  3923. Type: &ast.TypeName{Name: "any"},
  3924. },
  3925. },
  3926. ReturnType: &ast.TypeName{Name: "bool"},
  3927. },
  3928. {
  3929. Name: "ST_ISSIMPLE",
  3930. Args: []*catalog.Argument{
  3931. {
  3932. Type: &ast.TypeName{Name: "any"},
  3933. },
  3934. },
  3935. ReturnType: &ast.TypeName{Name: "bool"},
  3936. },
  3937. {
  3938. Name: "ST_ISVALID",
  3939. Args: []*catalog.Argument{
  3940. {
  3941. Type: &ast.TypeName{Name: "any"},
  3942. },
  3943. },
  3944. ReturnType: &ast.TypeName{Name: "bool"},
  3945. },
  3946. {
  3947. Name: "ST_LATFROMGEOHASH",
  3948. Args: []*catalog.Argument{
  3949. {
  3950. Type: &ast.TypeName{Name: "text"},
  3951. },
  3952. },
  3953. ReturnType: &ast.TypeName{Name: "double precision"},
  3954. },
  3955. {
  3956. Name: "ST_LATITUDE",
  3957. Args: []*catalog.Argument{
  3958. {
  3959. Type: &ast.TypeName{Name: "any"},
  3960. },
  3961. },
  3962. ReturnType: &ast.TypeName{Name: "double precision"},
  3963. },
  3964. {
  3965. Name: "ST_LATITUDE",
  3966. Args: []*catalog.Argument{
  3967. {
  3968. Type: &ast.TypeName{Name: "any"},
  3969. },
  3970. {
  3971. Type: &ast.TypeName{Name: "double precision"},
  3972. },
  3973. },
  3974. ReturnType: &ast.TypeName{Name: "any"},
  3975. },
  3976. {
  3977. Name: "ST_LENGTH",
  3978. Args: []*catalog.Argument{
  3979. {
  3980. Type: &ast.TypeName{Name: "any"},
  3981. },
  3982. },
  3983. ReturnType: &ast.TypeName{Name: "double precision"},
  3984. },
  3985. {
  3986. Name: "ST_LENGTH",
  3987. Args: []*catalog.Argument{
  3988. {
  3989. Type: &ast.TypeName{Name: "any"},
  3990. },
  3991. {
  3992. Type: &ast.TypeName{Name: "text"},
  3993. },
  3994. },
  3995. ReturnType: &ast.TypeName{Name: "double precision"},
  3996. },
  3997. {
  3998. Name: "ST_LINEFROMTEXT",
  3999. Args: []*catalog.Argument{
  4000. {
  4001. Type: &ast.TypeName{Name: "text"},
  4002. },
  4003. },
  4004. ReturnType: &ast.TypeName{Name: "any"},
  4005. },
  4006. {
  4007. Name: "ST_LINEFROMTEXT",
  4008. Args: []*catalog.Argument{
  4009. {
  4010. Type: &ast.TypeName{Name: "text"},
  4011. },
  4012. {
  4013. Type: &ast.TypeName{Name: "int"},
  4014. },
  4015. },
  4016. ReturnType: &ast.TypeName{Name: "any"},
  4017. },
  4018. {
  4019. Name: "ST_LINEFROMTEXT",
  4020. Args: []*catalog.Argument{
  4021. {
  4022. Type: &ast.TypeName{Name: "text"},
  4023. },
  4024. {
  4025. Type: &ast.TypeName{Name: "int"},
  4026. },
  4027. {
  4028. Type: &ast.TypeName{Name: "text"},
  4029. },
  4030. },
  4031. ReturnType: &ast.TypeName{Name: "any"},
  4032. },
  4033. {
  4034. Name: "ST_LINEFROMWKB",
  4035. Args: []*catalog.Argument{
  4036. {
  4037. Type: &ast.TypeName{Name: "binary"},
  4038. },
  4039. },
  4040. ReturnType: &ast.TypeName{Name: "any"},
  4041. },
  4042. {
  4043. Name: "ST_LINEFROMWKB",
  4044. Args: []*catalog.Argument{
  4045. {
  4046. Type: &ast.TypeName{Name: "binary"},
  4047. },
  4048. {
  4049. Type: &ast.TypeName{Name: "int"},
  4050. },
  4051. },
  4052. ReturnType: &ast.TypeName{Name: "any"},
  4053. },
  4054. {
  4055. Name: "ST_LINEFROMWKB",
  4056. Args: []*catalog.Argument{
  4057. {
  4058. Type: &ast.TypeName{Name: "binary"},
  4059. },
  4060. {
  4061. Type: &ast.TypeName{Name: "int"},
  4062. },
  4063. {
  4064. Type: &ast.TypeName{Name: "text"},
  4065. },
  4066. },
  4067. ReturnType: &ast.TypeName{Name: "any"},
  4068. },
  4069. {
  4070. Name: "ST_LINEINTERPOLATEPOINT",
  4071. Args: []*catalog.Argument{
  4072. {
  4073. Type: &ast.TypeName{Name: "any"},
  4074. },
  4075. {
  4076. Type: &ast.TypeName{Name: "double precision"},
  4077. },
  4078. },
  4079. ReturnType: &ast.TypeName{Name: "any"},
  4080. },
  4081. {
  4082. Name: "ST_LINEINTERPOLATEPOINTS",
  4083. Args: []*catalog.Argument{
  4084. {
  4085. Type: &ast.TypeName{Name: "any"},
  4086. },
  4087. {
  4088. Type: &ast.TypeName{Name: "double precision"},
  4089. },
  4090. },
  4091. ReturnType: &ast.TypeName{Name: "any"},
  4092. },
  4093. {
  4094. Name: "ST_LINESTRINGFROMTEXT",
  4095. Args: []*catalog.Argument{
  4096. {
  4097. Type: &ast.TypeName{Name: "text"},
  4098. },
  4099. },
  4100. ReturnType: &ast.TypeName{Name: "any"},
  4101. },
  4102. {
  4103. Name: "ST_LINESTRINGFROMTEXT",
  4104. Args: []*catalog.Argument{
  4105. {
  4106. Type: &ast.TypeName{Name: "text"},
  4107. },
  4108. {
  4109. Type: &ast.TypeName{Name: "int"},
  4110. },
  4111. },
  4112. ReturnType: &ast.TypeName{Name: "any"},
  4113. },
  4114. {
  4115. Name: "ST_LINESTRINGFROMTEXT",
  4116. Args: []*catalog.Argument{
  4117. {
  4118. Type: &ast.TypeName{Name: "text"},
  4119. },
  4120. {
  4121. Type: &ast.TypeName{Name: "int"},
  4122. },
  4123. {
  4124. Type: &ast.TypeName{Name: "text"},
  4125. },
  4126. },
  4127. ReturnType: &ast.TypeName{Name: "any"},
  4128. },
  4129. {
  4130. Name: "ST_LINESTRINGFROMWKB",
  4131. Args: []*catalog.Argument{
  4132. {
  4133. Type: &ast.TypeName{Name: "binary"},
  4134. },
  4135. },
  4136. ReturnType: &ast.TypeName{Name: "any"},
  4137. },
  4138. {
  4139. Name: "ST_LINESTRINGFROMWKB",
  4140. Args: []*catalog.Argument{
  4141. {
  4142. Type: &ast.TypeName{Name: "binary"},
  4143. },
  4144. {
  4145. Type: &ast.TypeName{Name: "int"},
  4146. },
  4147. },
  4148. ReturnType: &ast.TypeName{Name: "any"},
  4149. },
  4150. {
  4151. Name: "ST_LINESTRINGFROMWKB",
  4152. Args: []*catalog.Argument{
  4153. {
  4154. Type: &ast.TypeName{Name: "binary"},
  4155. },
  4156. {
  4157. Type: &ast.TypeName{Name: "int"},
  4158. },
  4159. {
  4160. Type: &ast.TypeName{Name: "text"},
  4161. },
  4162. },
  4163. ReturnType: &ast.TypeName{Name: "any"},
  4164. },
  4165. {
  4166. Name: "ST_LONGFROMGEOHASH",
  4167. Args: []*catalog.Argument{
  4168. {
  4169. Type: &ast.TypeName{Name: "text"},
  4170. },
  4171. },
  4172. ReturnType: &ast.TypeName{Name: "double precision"},
  4173. },
  4174. {
  4175. Name: "ST_LONGITUDE",
  4176. Args: []*catalog.Argument{
  4177. {
  4178. Type: &ast.TypeName{Name: "any"},
  4179. },
  4180. },
  4181. ReturnType: &ast.TypeName{Name: "double precision"},
  4182. },
  4183. {
  4184. Name: "ST_LONGITUDE",
  4185. Args: []*catalog.Argument{
  4186. {
  4187. Type: &ast.TypeName{Name: "any"},
  4188. },
  4189. {
  4190. Type: &ast.TypeName{Name: "double precision"},
  4191. },
  4192. },
  4193. ReturnType: &ast.TypeName{Name: "any"},
  4194. },
  4195. {
  4196. Name: "ST_MAKEENVELOPE",
  4197. Args: []*catalog.Argument{
  4198. {
  4199. Type: &ast.TypeName{Name: "any"},
  4200. },
  4201. {
  4202. Type: &ast.TypeName{Name: "any"},
  4203. },
  4204. },
  4205. ReturnType: &ast.TypeName{Name: "any"},
  4206. },
  4207. {
  4208. Name: "ST_MLINEFROMTEXT",
  4209. Args: []*catalog.Argument{
  4210. {
  4211. Type: &ast.TypeName{Name: "text"},
  4212. },
  4213. },
  4214. ReturnType: &ast.TypeName{Name: "any"},
  4215. },
  4216. {
  4217. Name: "ST_MLINEFROMTEXT",
  4218. Args: []*catalog.Argument{
  4219. {
  4220. Type: &ast.TypeName{Name: "text"},
  4221. },
  4222. {
  4223. Type: &ast.TypeName{Name: "int"},
  4224. },
  4225. },
  4226. ReturnType: &ast.TypeName{Name: "any"},
  4227. },
  4228. {
  4229. Name: "ST_MLINEFROMTEXT",
  4230. Args: []*catalog.Argument{
  4231. {
  4232. Type: &ast.TypeName{Name: "text"},
  4233. },
  4234. {
  4235. Type: &ast.TypeName{Name: "int"},
  4236. },
  4237. {
  4238. Type: &ast.TypeName{Name: "text"},
  4239. },
  4240. },
  4241. ReturnType: &ast.TypeName{Name: "any"},
  4242. },
  4243. {
  4244. Name: "ST_MLINEFROMWKB",
  4245. Args: []*catalog.Argument{
  4246. {
  4247. Type: &ast.TypeName{Name: "binary"},
  4248. },
  4249. },
  4250. ReturnType: &ast.TypeName{Name: "any"},
  4251. },
  4252. {
  4253. Name: "ST_MLINEFROMWKB",
  4254. Args: []*catalog.Argument{
  4255. {
  4256. Type: &ast.TypeName{Name: "binary"},
  4257. },
  4258. {
  4259. Type: &ast.TypeName{Name: "int"},
  4260. },
  4261. },
  4262. ReturnType: &ast.TypeName{Name: "any"},
  4263. },
  4264. {
  4265. Name: "ST_MLINEFROMWKB",
  4266. Args: []*catalog.Argument{
  4267. {
  4268. Type: &ast.TypeName{Name: "binary"},
  4269. },
  4270. {
  4271. Type: &ast.TypeName{Name: "int"},
  4272. },
  4273. {
  4274. Type: &ast.TypeName{Name: "text"},
  4275. },
  4276. },
  4277. ReturnType: &ast.TypeName{Name: "any"},
  4278. },
  4279. {
  4280. Name: "ST_MPOINTFROMTEXT",
  4281. Args: []*catalog.Argument{
  4282. {
  4283. Type: &ast.TypeName{Name: "text"},
  4284. },
  4285. },
  4286. ReturnType: &ast.TypeName{Name: "any"},
  4287. },
  4288. {
  4289. Name: "ST_MPOINTFROMTEXT",
  4290. Args: []*catalog.Argument{
  4291. {
  4292. Type: &ast.TypeName{Name: "text"},
  4293. },
  4294. {
  4295. Type: &ast.TypeName{Name: "int"},
  4296. },
  4297. },
  4298. ReturnType: &ast.TypeName{Name: "any"},
  4299. },
  4300. {
  4301. Name: "ST_MPOINTFROMTEXT",
  4302. Args: []*catalog.Argument{
  4303. {
  4304. Type: &ast.TypeName{Name: "text"},
  4305. },
  4306. {
  4307. Type: &ast.TypeName{Name: "int"},
  4308. },
  4309. {
  4310. Type: &ast.TypeName{Name: "text"},
  4311. },
  4312. },
  4313. ReturnType: &ast.TypeName{Name: "any"},
  4314. },
  4315. {
  4316. Name: "ST_MPOINTFROMWKB",
  4317. Args: []*catalog.Argument{
  4318. {
  4319. Type: &ast.TypeName{Name: "binary"},
  4320. },
  4321. },
  4322. ReturnType: &ast.TypeName{Name: "any"},
  4323. },
  4324. {
  4325. Name: "ST_MPOINTFROMWKB",
  4326. Args: []*catalog.Argument{
  4327. {
  4328. Type: &ast.TypeName{Name: "binary"},
  4329. },
  4330. {
  4331. Type: &ast.TypeName{Name: "int"},
  4332. },
  4333. },
  4334. ReturnType: &ast.TypeName{Name: "any"},
  4335. },
  4336. {
  4337. Name: "ST_MPOINTFROMWKB",
  4338. Args: []*catalog.Argument{
  4339. {
  4340. Type: &ast.TypeName{Name: "binary"},
  4341. },
  4342. {
  4343. Type: &ast.TypeName{Name: "int"},
  4344. },
  4345. {
  4346. Type: &ast.TypeName{Name: "text"},
  4347. },
  4348. },
  4349. ReturnType: &ast.TypeName{Name: "any"},
  4350. },
  4351. {
  4352. Name: "ST_MPOLYFROMTEXT",
  4353. Args: []*catalog.Argument{
  4354. {
  4355. Type: &ast.TypeName{Name: "text"},
  4356. },
  4357. },
  4358. ReturnType: &ast.TypeName{Name: "any"},
  4359. },
  4360. {
  4361. Name: "ST_MPOLYFROMTEXT",
  4362. Args: []*catalog.Argument{
  4363. {
  4364. Type: &ast.TypeName{Name: "text"},
  4365. },
  4366. {
  4367. Type: &ast.TypeName{Name: "int"},
  4368. },
  4369. },
  4370. ReturnType: &ast.TypeName{Name: "any"},
  4371. },
  4372. {
  4373. Name: "ST_MPOLYFROMTEXT",
  4374. Args: []*catalog.Argument{
  4375. {
  4376. Type: &ast.TypeName{Name: "text"},
  4377. },
  4378. {
  4379. Type: &ast.TypeName{Name: "int"},
  4380. },
  4381. {
  4382. Type: &ast.TypeName{Name: "text"},
  4383. },
  4384. },
  4385. ReturnType: &ast.TypeName{Name: "any"},
  4386. },
  4387. {
  4388. Name: "ST_MPOLYFROMWKB",
  4389. Args: []*catalog.Argument{
  4390. {
  4391. Type: &ast.TypeName{Name: "binary"},
  4392. },
  4393. },
  4394. ReturnType: &ast.TypeName{Name: "any"},
  4395. },
  4396. {
  4397. Name: "ST_MPOLYFROMWKB",
  4398. Args: []*catalog.Argument{
  4399. {
  4400. Type: &ast.TypeName{Name: "binary"},
  4401. },
  4402. {
  4403. Type: &ast.TypeName{Name: "int"},
  4404. },
  4405. },
  4406. ReturnType: &ast.TypeName{Name: "any"},
  4407. },
  4408. {
  4409. Name: "ST_MPOLYFROMWKB",
  4410. Args: []*catalog.Argument{
  4411. {
  4412. Type: &ast.TypeName{Name: "binary"},
  4413. },
  4414. {
  4415. Type: &ast.TypeName{Name: "int"},
  4416. },
  4417. {
  4418. Type: &ast.TypeName{Name: "text"},
  4419. },
  4420. },
  4421. ReturnType: &ast.TypeName{Name: "any"},
  4422. },
  4423. {
  4424. Name: "ST_MULTILINESTRINGFROMTEXT",
  4425. Args: []*catalog.Argument{
  4426. {
  4427. Type: &ast.TypeName{Name: "text"},
  4428. },
  4429. },
  4430. ReturnType: &ast.TypeName{Name: "any"},
  4431. },
  4432. {
  4433. Name: "ST_MULTILINESTRINGFROMTEXT",
  4434. Args: []*catalog.Argument{
  4435. {
  4436. Type: &ast.TypeName{Name: "text"},
  4437. },
  4438. {
  4439. Type: &ast.TypeName{Name: "int"},
  4440. },
  4441. },
  4442. ReturnType: &ast.TypeName{Name: "any"},
  4443. },
  4444. {
  4445. Name: "ST_MULTILINESTRINGFROMTEXT",
  4446. Args: []*catalog.Argument{
  4447. {
  4448. Type: &ast.TypeName{Name: "text"},
  4449. },
  4450. {
  4451. Type: &ast.TypeName{Name: "int"},
  4452. },
  4453. {
  4454. Type: &ast.TypeName{Name: "text"},
  4455. },
  4456. },
  4457. ReturnType: &ast.TypeName{Name: "any"},
  4458. },
  4459. {
  4460. Name: "ST_MULTILINESTRINGFROMWKB",
  4461. Args: []*catalog.Argument{
  4462. {
  4463. Type: &ast.TypeName{Name: "binary"},
  4464. },
  4465. },
  4466. ReturnType: &ast.TypeName{Name: "any"},
  4467. },
  4468. {
  4469. Name: "ST_MULTILINESTRINGFROMWKB",
  4470. Args: []*catalog.Argument{
  4471. {
  4472. Type: &ast.TypeName{Name: "binary"},
  4473. },
  4474. {
  4475. Type: &ast.TypeName{Name: "int"},
  4476. },
  4477. },
  4478. ReturnType: &ast.TypeName{Name: "any"},
  4479. },
  4480. {
  4481. Name: "ST_MULTILINESTRINGFROMWKB",
  4482. Args: []*catalog.Argument{
  4483. {
  4484. Type: &ast.TypeName{Name: "binary"},
  4485. },
  4486. {
  4487. Type: &ast.TypeName{Name: "int"},
  4488. },
  4489. {
  4490. Type: &ast.TypeName{Name: "text"},
  4491. },
  4492. },
  4493. ReturnType: &ast.TypeName{Name: "any"},
  4494. },
  4495. {
  4496. Name: "ST_MULTIPOINTFROMTEXT",
  4497. Args: []*catalog.Argument{
  4498. {
  4499. Type: &ast.TypeName{Name: "text"},
  4500. },
  4501. },
  4502. ReturnType: &ast.TypeName{Name: "any"},
  4503. },
  4504. {
  4505. Name: "ST_MULTIPOINTFROMTEXT",
  4506. Args: []*catalog.Argument{
  4507. {
  4508. Type: &ast.TypeName{Name: "text"},
  4509. },
  4510. {
  4511. Type: &ast.TypeName{Name: "int"},
  4512. },
  4513. },
  4514. ReturnType: &ast.TypeName{Name: "any"},
  4515. },
  4516. {
  4517. Name: "ST_MULTIPOINTFROMTEXT",
  4518. Args: []*catalog.Argument{
  4519. {
  4520. Type: &ast.TypeName{Name: "text"},
  4521. },
  4522. {
  4523. Type: &ast.TypeName{Name: "int"},
  4524. },
  4525. {
  4526. Type: &ast.TypeName{Name: "text"},
  4527. },
  4528. },
  4529. ReturnType: &ast.TypeName{Name: "any"},
  4530. },
  4531. {
  4532. Name: "ST_MULTIPOINTFROMWKB",
  4533. Args: []*catalog.Argument{
  4534. {
  4535. Type: &ast.TypeName{Name: "binary"},
  4536. },
  4537. },
  4538. ReturnType: &ast.TypeName{Name: "any"},
  4539. },
  4540. {
  4541. Name: "ST_MULTIPOINTFROMWKB",
  4542. Args: []*catalog.Argument{
  4543. {
  4544. Type: &ast.TypeName{Name: "binary"},
  4545. },
  4546. {
  4547. Type: &ast.TypeName{Name: "int"},
  4548. },
  4549. },
  4550. ReturnType: &ast.TypeName{Name: "any"},
  4551. },
  4552. {
  4553. Name: "ST_MULTIPOINTFROMWKB",
  4554. Args: []*catalog.Argument{
  4555. {
  4556. Type: &ast.TypeName{Name: "binary"},
  4557. },
  4558. {
  4559. Type: &ast.TypeName{Name: "int"},
  4560. },
  4561. {
  4562. Type: &ast.TypeName{Name: "text"},
  4563. },
  4564. },
  4565. ReturnType: &ast.TypeName{Name: "any"},
  4566. },
  4567. {
  4568. Name: "ST_MULTIPOLYGONFROMTEXT",
  4569. Args: []*catalog.Argument{
  4570. {
  4571. Type: &ast.TypeName{Name: "text"},
  4572. },
  4573. },
  4574. ReturnType: &ast.TypeName{Name: "any"},
  4575. },
  4576. {
  4577. Name: "ST_MULTIPOLYGONFROMTEXT",
  4578. Args: []*catalog.Argument{
  4579. {
  4580. Type: &ast.TypeName{Name: "text"},
  4581. },
  4582. {
  4583. Type: &ast.TypeName{Name: "int"},
  4584. },
  4585. },
  4586. ReturnType: &ast.TypeName{Name: "any"},
  4587. },
  4588. {
  4589. Name: "ST_MULTIPOLYGONFROMTEXT",
  4590. Args: []*catalog.Argument{
  4591. {
  4592. Type: &ast.TypeName{Name: "text"},
  4593. },
  4594. {
  4595. Type: &ast.TypeName{Name: "int"},
  4596. },
  4597. {
  4598. Type: &ast.TypeName{Name: "text"},
  4599. },
  4600. },
  4601. ReturnType: &ast.TypeName{Name: "any"},
  4602. },
  4603. {
  4604. Name: "ST_MULTIPOLYGONFROMWKB",
  4605. Args: []*catalog.Argument{
  4606. {
  4607. Type: &ast.TypeName{Name: "binary"},
  4608. },
  4609. },
  4610. ReturnType: &ast.TypeName{Name: "any"},
  4611. },
  4612. {
  4613. Name: "ST_MULTIPOLYGONFROMWKB",
  4614. Args: []*catalog.Argument{
  4615. {
  4616. Type: &ast.TypeName{Name: "binary"},
  4617. },
  4618. {
  4619. Type: &ast.TypeName{Name: "int"},
  4620. },
  4621. },
  4622. ReturnType: &ast.TypeName{Name: "any"},
  4623. },
  4624. {
  4625. Name: "ST_MULTIPOLYGONFROMWKB",
  4626. Args: []*catalog.Argument{
  4627. {
  4628. Type: &ast.TypeName{Name: "binary"},
  4629. },
  4630. {
  4631. Type: &ast.TypeName{Name: "int"},
  4632. },
  4633. {
  4634. Type: &ast.TypeName{Name: "text"},
  4635. },
  4636. },
  4637. ReturnType: &ast.TypeName{Name: "any"},
  4638. },
  4639. {
  4640. Name: "ST_NUMGEOMETRIES",
  4641. Args: []*catalog.Argument{
  4642. {
  4643. Type: &ast.TypeName{Name: "any"},
  4644. },
  4645. },
  4646. ReturnType: &ast.TypeName{Name: "bigint"},
  4647. },
  4648. {
  4649. Name: "ST_NUMINTERIORRING",
  4650. Args: []*catalog.Argument{
  4651. {
  4652. Type: &ast.TypeName{Name: "any"},
  4653. },
  4654. },
  4655. ReturnType: &ast.TypeName{Name: "int"},
  4656. },
  4657. {
  4658. Name: "ST_NUMINTERIORRINGS",
  4659. Args: []*catalog.Argument{
  4660. {
  4661. Type: &ast.TypeName{Name: "any"},
  4662. },
  4663. },
  4664. ReturnType: &ast.TypeName{Name: "int"},
  4665. },
  4666. {
  4667. Name: "ST_NUMPOINTS",
  4668. Args: []*catalog.Argument{
  4669. {
  4670. Type: &ast.TypeName{Name: "any"},
  4671. },
  4672. },
  4673. ReturnType: &ast.TypeName{Name: "bigint"},
  4674. },
  4675. {
  4676. Name: "ST_OVERLAPS",
  4677. Args: []*catalog.Argument{
  4678. {
  4679. Type: &ast.TypeName{Name: "any"},
  4680. },
  4681. {
  4682. Type: &ast.TypeName{Name: "any"},
  4683. },
  4684. },
  4685. ReturnType: &ast.TypeName{Name: "bool"},
  4686. },
  4687. {
  4688. Name: "ST_POINTATDISTANCE",
  4689. Args: []*catalog.Argument{
  4690. {
  4691. Type: &ast.TypeName{Name: "any"},
  4692. },
  4693. {
  4694. Type: &ast.TypeName{Name: "double precision"},
  4695. },
  4696. },
  4697. ReturnType: &ast.TypeName{Name: "any"},
  4698. },
  4699. {
  4700. Name: "ST_POINTFROMGEOHASH",
  4701. Args: []*catalog.Argument{
  4702. {
  4703. Type: &ast.TypeName{Name: "text"},
  4704. },
  4705. {
  4706. Type: &ast.TypeName{Name: "int"},
  4707. },
  4708. },
  4709. ReturnType: &ast.TypeName{Name: "any"},
  4710. },
  4711. {
  4712. Name: "ST_POINTFROMTEXT",
  4713. Args: []*catalog.Argument{
  4714. {
  4715. Type: &ast.TypeName{Name: "text"},
  4716. },
  4717. },
  4718. ReturnType: &ast.TypeName{Name: "any"},
  4719. },
  4720. {
  4721. Name: "ST_POINTFROMTEXT",
  4722. Args: []*catalog.Argument{
  4723. {
  4724. Type: &ast.TypeName{Name: "text"},
  4725. },
  4726. {
  4727. Type: &ast.TypeName{Name: "int"},
  4728. },
  4729. },
  4730. ReturnType: &ast.TypeName{Name: "any"},
  4731. },
  4732. {
  4733. Name: "ST_POINTFROMTEXT",
  4734. Args: []*catalog.Argument{
  4735. {
  4736. Type: &ast.TypeName{Name: "text"},
  4737. },
  4738. {
  4739. Type: &ast.TypeName{Name: "int"},
  4740. },
  4741. {
  4742. Type: &ast.TypeName{Name: "text"},
  4743. },
  4744. },
  4745. ReturnType: &ast.TypeName{Name: "any"},
  4746. },
  4747. {
  4748. Name: "ST_POINTFROMWKB",
  4749. Args: []*catalog.Argument{
  4750. {
  4751. Type: &ast.TypeName{Name: "binary"},
  4752. },
  4753. },
  4754. ReturnType: &ast.TypeName{Name: "any"},
  4755. },
  4756. {
  4757. Name: "ST_POINTFROMWKB",
  4758. Args: []*catalog.Argument{
  4759. {
  4760. Type: &ast.TypeName{Name: "binary"},
  4761. },
  4762. {
  4763. Type: &ast.TypeName{Name: "int"},
  4764. },
  4765. },
  4766. ReturnType: &ast.TypeName{Name: "any"},
  4767. },
  4768. {
  4769. Name: "ST_POINTFROMWKB",
  4770. Args: []*catalog.Argument{
  4771. {
  4772. Type: &ast.TypeName{Name: "binary"},
  4773. },
  4774. {
  4775. Type: &ast.TypeName{Name: "int"},
  4776. },
  4777. {
  4778. Type: &ast.TypeName{Name: "text"},
  4779. },
  4780. },
  4781. ReturnType: &ast.TypeName{Name: "any"},
  4782. },
  4783. {
  4784. Name: "ST_POINTN",
  4785. Args: []*catalog.Argument{
  4786. {
  4787. Type: &ast.TypeName{Name: "any"},
  4788. },
  4789. {
  4790. Type: &ast.TypeName{Name: "int"},
  4791. },
  4792. },
  4793. ReturnType: &ast.TypeName{Name: "any"},
  4794. },
  4795. {
  4796. Name: "ST_POLYFROMTEXT",
  4797. Args: []*catalog.Argument{
  4798. {
  4799. Type: &ast.TypeName{Name: "text"},
  4800. },
  4801. },
  4802. ReturnType: &ast.TypeName{Name: "any"},
  4803. },
  4804. {
  4805. Name: "ST_POLYFROMTEXT",
  4806. Args: []*catalog.Argument{
  4807. {
  4808. Type: &ast.TypeName{Name: "text"},
  4809. },
  4810. {
  4811. Type: &ast.TypeName{Name: "int"},
  4812. },
  4813. },
  4814. ReturnType: &ast.TypeName{Name: "any"},
  4815. },
  4816. {
  4817. Name: "ST_POLYFROMTEXT",
  4818. Args: []*catalog.Argument{
  4819. {
  4820. Type: &ast.TypeName{Name: "text"},
  4821. },
  4822. {
  4823. Type: &ast.TypeName{Name: "int"},
  4824. },
  4825. {
  4826. Type: &ast.TypeName{Name: "text"},
  4827. },
  4828. },
  4829. ReturnType: &ast.TypeName{Name: "any"},
  4830. },
  4831. {
  4832. Name: "ST_POLYFROMWKB",
  4833. Args: []*catalog.Argument{
  4834. {
  4835. Type: &ast.TypeName{Name: "binary"},
  4836. },
  4837. },
  4838. ReturnType: &ast.TypeName{Name: "any"},
  4839. },
  4840. {
  4841. Name: "ST_POLYFROMWKB",
  4842. Args: []*catalog.Argument{
  4843. {
  4844. Type: &ast.TypeName{Name: "binary"},
  4845. },
  4846. {
  4847. Type: &ast.TypeName{Name: "int"},
  4848. },
  4849. },
  4850. ReturnType: &ast.TypeName{Name: "any"},
  4851. },
  4852. {
  4853. Name: "ST_POLYFROMWKB",
  4854. Args: []*catalog.Argument{
  4855. {
  4856. Type: &ast.TypeName{Name: "binary"},
  4857. },
  4858. {
  4859. Type: &ast.TypeName{Name: "int"},
  4860. },
  4861. {
  4862. Type: &ast.TypeName{Name: "text"},
  4863. },
  4864. },
  4865. ReturnType: &ast.TypeName{Name: "any"},
  4866. },
  4867. {
  4868. Name: "ST_POLYGONFROMTEXT",
  4869. Args: []*catalog.Argument{
  4870. {
  4871. Type: &ast.TypeName{Name: "text"},
  4872. },
  4873. },
  4874. ReturnType: &ast.TypeName{Name: "any"},
  4875. },
  4876. {
  4877. Name: "ST_POLYGONFROMTEXT",
  4878. Args: []*catalog.Argument{
  4879. {
  4880. Type: &ast.TypeName{Name: "text"},
  4881. },
  4882. {
  4883. Type: &ast.TypeName{Name: "int"},
  4884. },
  4885. },
  4886. ReturnType: &ast.TypeName{Name: "any"},
  4887. },
  4888. {
  4889. Name: "ST_POLYGONFROMTEXT",
  4890. Args: []*catalog.Argument{
  4891. {
  4892. Type: &ast.TypeName{Name: "text"},
  4893. },
  4894. {
  4895. Type: &ast.TypeName{Name: "int"},
  4896. },
  4897. {
  4898. Type: &ast.TypeName{Name: "text"},
  4899. },
  4900. },
  4901. ReturnType: &ast.TypeName{Name: "any"},
  4902. },
  4903. {
  4904. Name: "ST_POLYGONFROMWKB",
  4905. Args: []*catalog.Argument{
  4906. {
  4907. Type: &ast.TypeName{Name: "binary"},
  4908. },
  4909. },
  4910. ReturnType: &ast.TypeName{Name: "any"},
  4911. },
  4912. {
  4913. Name: "ST_POLYGONFROMWKB",
  4914. Args: []*catalog.Argument{
  4915. {
  4916. Type: &ast.TypeName{Name: "binary"},
  4917. },
  4918. {
  4919. Type: &ast.TypeName{Name: "int"},
  4920. },
  4921. },
  4922. ReturnType: &ast.TypeName{Name: "any"},
  4923. },
  4924. {
  4925. Name: "ST_POLYGONFROMWKB",
  4926. Args: []*catalog.Argument{
  4927. {
  4928. Type: &ast.TypeName{Name: "binary"},
  4929. },
  4930. {
  4931. Type: &ast.TypeName{Name: "int"},
  4932. },
  4933. {
  4934. Type: &ast.TypeName{Name: "text"},
  4935. },
  4936. },
  4937. ReturnType: &ast.TypeName{Name: "any"},
  4938. },
  4939. {
  4940. Name: "ST_SIMPLIFY",
  4941. Args: []*catalog.Argument{
  4942. {
  4943. Type: &ast.TypeName{Name: "any"},
  4944. },
  4945. {
  4946. Type: &ast.TypeName{Name: "double precision"},
  4947. },
  4948. },
  4949. ReturnType: &ast.TypeName{Name: "any"},
  4950. },
  4951. {
  4952. Name: "ST_SRID",
  4953. Args: []*catalog.Argument{
  4954. {
  4955. Type: &ast.TypeName{Name: "any"},
  4956. },
  4957. },
  4958. ReturnType: &ast.TypeName{Name: "int"},
  4959. },
  4960. {
  4961. Name: "ST_SRID",
  4962. Args: []*catalog.Argument{
  4963. {
  4964. Type: &ast.TypeName{Name: "any"},
  4965. },
  4966. {
  4967. Type: &ast.TypeName{Name: "int"},
  4968. },
  4969. },
  4970. ReturnType: &ast.TypeName{Name: "int"},
  4971. },
  4972. {
  4973. Name: "ST_STARTPOINT",
  4974. Args: []*catalog.Argument{
  4975. {
  4976. Type: &ast.TypeName{Name: "any"},
  4977. },
  4978. },
  4979. ReturnType: &ast.TypeName{Name: "any"},
  4980. },
  4981. {
  4982. Name: "ST_SWAPXY",
  4983. Args: []*catalog.Argument{
  4984. {
  4985. Type: &ast.TypeName{Name: "any"},
  4986. },
  4987. },
  4988. ReturnType: &ast.TypeName{Name: "any"},
  4989. },
  4990. {
  4991. Name: "ST_SYMDIFFERENCE",
  4992. Args: []*catalog.Argument{
  4993. {
  4994. Type: &ast.TypeName{Name: "any"},
  4995. },
  4996. {
  4997. Type: &ast.TypeName{Name: "any"},
  4998. },
  4999. },
  5000. ReturnType: &ast.TypeName{Name: "any"},
  5001. },
  5002. {
  5003. Name: "ST_TOUCHES",
  5004. Args: []*catalog.Argument{
  5005. {
  5006. Type: &ast.TypeName{Name: "any"},
  5007. },
  5008. {
  5009. Type: &ast.TypeName{Name: "any"},
  5010. },
  5011. },
  5012. ReturnType: &ast.TypeName{Name: "bool"},
  5013. },
  5014. {
  5015. Name: "ST_TRANSFORM",
  5016. Args: []*catalog.Argument{
  5017. {
  5018. Type: &ast.TypeName{Name: "any"},
  5019. },
  5020. {
  5021. Type: &ast.TypeName{Name: "int"},
  5022. },
  5023. },
  5024. ReturnType: &ast.TypeName{Name: "any"},
  5025. },
  5026. {
  5027. Name: "ST_UNION",
  5028. Args: []*catalog.Argument{
  5029. {
  5030. Type: &ast.TypeName{Name: "any"},
  5031. },
  5032. {
  5033. Type: &ast.TypeName{Name: "any"},
  5034. },
  5035. },
  5036. ReturnType: &ast.TypeName{Name: "any"},
  5037. },
  5038. {
  5039. Name: "ST_VALIDATE",
  5040. Args: []*catalog.Argument{
  5041. {
  5042. Type: &ast.TypeName{Name: "any"},
  5043. },
  5044. },
  5045. ReturnType: &ast.TypeName{Name: "any"},
  5046. },
  5047. {
  5048. Name: "ST_WITHIN",
  5049. Args: []*catalog.Argument{
  5050. {
  5051. Type: &ast.TypeName{Name: "any"},
  5052. },
  5053. {
  5054. Type: &ast.TypeName{Name: "any"},
  5055. },
  5056. },
  5057. ReturnType: &ast.TypeName{Name: "bool"},
  5058. },
  5059. {
  5060. Name: "ST_X",
  5061. Args: []*catalog.Argument{
  5062. {
  5063. Type: &ast.TypeName{Name: "any"},
  5064. },
  5065. },
  5066. ReturnType: &ast.TypeName{Name: "double precision"},
  5067. },
  5068. {
  5069. Name: "ST_X",
  5070. Args: []*catalog.Argument{
  5071. {
  5072. Type: &ast.TypeName{Name: "any"},
  5073. },
  5074. {
  5075. Type: &ast.TypeName{Name: "double precision"},
  5076. },
  5077. },
  5078. ReturnType: &ast.TypeName{Name: "any"},
  5079. },
  5080. {
  5081. Name: "ST_Y",
  5082. Args: []*catalog.Argument{
  5083. {
  5084. Type: &ast.TypeName{Name: "any"},
  5085. },
  5086. },
  5087. ReturnType: &ast.TypeName{Name: "double precision"},
  5088. },
  5089. {
  5090. Name: "ST_Y",
  5091. Args: []*catalog.Argument{
  5092. {
  5093. Type: &ast.TypeName{Name: "any"},
  5094. },
  5095. {
  5096. Type: &ast.TypeName{Name: "double precision"},
  5097. },
  5098. },
  5099. ReturnType: &ast.TypeName{Name: "any"},
  5100. },
  5101. {
  5102. Name: "SUBDATE",
  5103. Args: []*catalog.Argument{
  5104. {
  5105. Type: &ast.TypeName{Name: "date"},
  5106. },
  5107. {
  5108. Type: &ast.TypeName{Name: "any"},
  5109. },
  5110. },
  5111. ReturnType: &ast.TypeName{Name: "date"},
  5112. },
  5113. {
  5114. Name: "SUBSTR",
  5115. Args: []*catalog.Argument{
  5116. {
  5117. Type: &ast.TypeName{Name: "text"},
  5118. },
  5119. {
  5120. Type: &ast.TypeName{Name: "int"},
  5121. },
  5122. },
  5123. ReturnType: &ast.TypeName{Name: "text"},
  5124. },
  5125. {
  5126. Name: "SUBSTR",
  5127. Args: []*catalog.Argument{
  5128. {
  5129. Type: &ast.TypeName{Name: "text"},
  5130. },
  5131. {
  5132. Type: &ast.TypeName{Name: "int"},
  5133. },
  5134. {
  5135. Type: &ast.TypeName{Name: "int"},
  5136. },
  5137. },
  5138. ReturnType: &ast.TypeName{Name: "text"},
  5139. },
  5140. {
  5141. Name: "SUBSTRING",
  5142. Args: []*catalog.Argument{
  5143. {
  5144. Type: &ast.TypeName{Name: "text"},
  5145. },
  5146. {
  5147. Type: &ast.TypeName{Name: "int"},
  5148. },
  5149. },
  5150. ReturnType: &ast.TypeName{Name: "text"},
  5151. },
  5152. {
  5153. Name: "SUBSTRING",
  5154. Args: []*catalog.Argument{
  5155. {
  5156. Type: &ast.TypeName{Name: "text"},
  5157. },
  5158. {
  5159. Type: &ast.TypeName{Name: "int"},
  5160. },
  5161. {
  5162. Type: &ast.TypeName{Name: "int"},
  5163. },
  5164. },
  5165. ReturnType: &ast.TypeName{Name: "text"},
  5166. },
  5167. {
  5168. Name: "SUBSTRING_INDEX",
  5169. Args: []*catalog.Argument{
  5170. {
  5171. Type: &ast.TypeName{Name: "text"},
  5172. },
  5173. {
  5174. Type: &ast.TypeName{Name: "int"},
  5175. },
  5176. {
  5177. Type: &ast.TypeName{Name: "int"},
  5178. },
  5179. },
  5180. ReturnType: &ast.TypeName{Name: "text"},
  5181. },
  5182. {
  5183. Name: "SUBTIME",
  5184. Args: []*catalog.Argument{
  5185. {
  5186. Type: &ast.TypeName{Name: "time"},
  5187. },
  5188. {
  5189. Type: &ast.TypeName{Name: "time"},
  5190. },
  5191. },
  5192. ReturnType: &ast.TypeName{Name: "time"},
  5193. },
  5194. {
  5195. Name: "SUM",
  5196. Args: []*catalog.Argument{
  5197. {
  5198. Type: &ast.TypeName{Name: "any"},
  5199. },
  5200. },
  5201. ReturnType: &ast.TypeName{Name: "any"},
  5202. },
  5203. {
  5204. Name: "SYSDATE",
  5205. Args: []*catalog.Argument{},
  5206. ReturnType: &ast.TypeName{Name: "datetime"},
  5207. },
  5208. {
  5209. Name: "SYSDATE",
  5210. Args: []*catalog.Argument{
  5211. {
  5212. Type: &ast.TypeName{Name: "int"},
  5213. },
  5214. },
  5215. ReturnType: &ast.TypeName{Name: "datetime"},
  5216. },
  5217. {
  5218. Name: "SYSTEM_USER",
  5219. Args: []*catalog.Argument{},
  5220. ReturnType: &ast.TypeName{Name: "text"},
  5221. },
  5222. {
  5223. Name: "TAN",
  5224. Args: []*catalog.Argument{
  5225. {
  5226. Type: &ast.TypeName{Name: "double precision"},
  5227. },
  5228. },
  5229. ReturnType: &ast.TypeName{Name: "double precision"},
  5230. },
  5231. {
  5232. Name: "TIME",
  5233. Args: []*catalog.Argument{
  5234. {
  5235. Type: &ast.TypeName{Name: "datetime"},
  5236. },
  5237. },
  5238. ReturnType: &ast.TypeName{Name: "time"},
  5239. },
  5240. {
  5241. Name: "TIMEDIFF",
  5242. Args: []*catalog.Argument{
  5243. {
  5244. Type: &ast.TypeName{Name: "time"},
  5245. },
  5246. {
  5247. Type: &ast.TypeName{Name: "time"},
  5248. },
  5249. },
  5250. ReturnType: &ast.TypeName{Name: "time"},
  5251. },
  5252. {
  5253. Name: "TIMESTAMP",
  5254. Args: []*catalog.Argument{
  5255. {
  5256. Type: &ast.TypeName{Name: "datetime"},
  5257. },
  5258. },
  5259. ReturnType: &ast.TypeName{Name: "datetime"},
  5260. },
  5261. {
  5262. Name: "TIMESTAMP",
  5263. Args: []*catalog.Argument{
  5264. {
  5265. Type: &ast.TypeName{Name: "datetime"},
  5266. },
  5267. {
  5268. Type: &ast.TypeName{Name: "datetime"},
  5269. },
  5270. },
  5271. ReturnType: &ast.TypeName{Name: "datetime"},
  5272. },
  5273. {
  5274. Name: "TIMESTAMPADD",
  5275. Args: []*catalog.Argument{
  5276. {
  5277. Type: &ast.TypeName{Name: "any"},
  5278. },
  5279. {
  5280. Type: &ast.TypeName{Name: "int"},
  5281. },
  5282. {
  5283. Type: &ast.TypeName{Name: "datetime"},
  5284. },
  5285. },
  5286. ReturnType: &ast.TypeName{Name: "datetime"},
  5287. },
  5288. {
  5289. Name: "TIMESTAMPDIFF",
  5290. Args: []*catalog.Argument{
  5291. {
  5292. Type: &ast.TypeName{Name: "any"},
  5293. },
  5294. {
  5295. Type: &ast.TypeName{Name: "datetime"},
  5296. },
  5297. {
  5298. Type: &ast.TypeName{Name: "datetime"},
  5299. },
  5300. },
  5301. ReturnType: &ast.TypeName{Name: "int"},
  5302. },
  5303. {
  5304. Name: "TIME_FORMAT",
  5305. Args: []*catalog.Argument{
  5306. {
  5307. Type: &ast.TypeName{Name: "time"},
  5308. },
  5309. {
  5310. Type: &ast.TypeName{Name: "text"},
  5311. },
  5312. },
  5313. ReturnType: &ast.TypeName{Name: "text"},
  5314. },
  5315. {
  5316. Name: "TIME_TO_SEC",
  5317. Args: []*catalog.Argument{
  5318. {
  5319. Type: &ast.TypeName{Name: "time"},
  5320. },
  5321. },
  5322. ReturnType: &ast.TypeName{Name: "int"},
  5323. },
  5324. {
  5325. Name: "TO_BASE64",
  5326. Args: []*catalog.Argument{
  5327. {
  5328. Type: &ast.TypeName{Name: "text"},
  5329. },
  5330. },
  5331. ReturnType: &ast.TypeName{Name: "text"},
  5332. },
  5333. {
  5334. Name: "TO_DAYS",
  5335. Args: []*catalog.Argument{
  5336. {
  5337. Type: &ast.TypeName{Name: "date"},
  5338. },
  5339. },
  5340. ReturnType: &ast.TypeName{Name: "int"},
  5341. },
  5342. {
  5343. Name: "TO_SECONDS",
  5344. Args: []*catalog.Argument{
  5345. {
  5346. Type: &ast.TypeName{Name: "datetime"},
  5347. },
  5348. },
  5349. ReturnType: &ast.TypeName{Name: "bigint"},
  5350. },
  5351. {
  5352. Name: "TRIM",
  5353. Args: []*catalog.Argument{
  5354. {
  5355. Type: &ast.TypeName{Name: "text"},
  5356. },
  5357. },
  5358. ReturnType: &ast.TypeName{Name: "text"},
  5359. },
  5360. {
  5361. Name: "TRIM",
  5362. Args: []*catalog.Argument{
  5363. {
  5364. Type: &ast.TypeName{Name: "text"},
  5365. },
  5366. {
  5367. Type: &ast.TypeName{Name: "text"},
  5368. },
  5369. },
  5370. ReturnType: &ast.TypeName{Name: "text"},
  5371. },
  5372. {
  5373. Name: "TRUNCATE",
  5374. Args: []*catalog.Argument{
  5375. {
  5376. Type: &ast.TypeName{Name: "double precision"},
  5377. },
  5378. {
  5379. Type: &ast.TypeName{Name: "int"},
  5380. },
  5381. },
  5382. ReturnType: &ast.TypeName{Name: "int"},
  5383. },
  5384. {
  5385. Name: "UCASE",
  5386. Args: []*catalog.Argument{
  5387. {
  5388. Type: &ast.TypeName{Name: "text"},
  5389. },
  5390. },
  5391. ReturnType: &ast.TypeName{Name: "text"},
  5392. },
  5393. {
  5394. Name: "UNCOMPRESS",
  5395. Args: []*catalog.Argument{
  5396. {
  5397. Type: &ast.TypeName{Name: "binary"},
  5398. },
  5399. },
  5400. ReturnType: &ast.TypeName{Name: "text"},
  5401. },
  5402. {
  5403. Name: "UNCOMPRESSED_LENGTH",
  5404. Args: []*catalog.Argument{
  5405. {
  5406. Type: &ast.TypeName{Name: "binary"},
  5407. },
  5408. },
  5409. ReturnType: &ast.TypeName{Name: "int"},
  5410. },
  5411. {
  5412. Name: "UNHEX",
  5413. Args: []*catalog.Argument{
  5414. {
  5415. Type: &ast.TypeName{Name: "text"},
  5416. },
  5417. },
  5418. },
  5419. {
  5420. Name: "UNIX_TIMESTAMP",
  5421. Args: []*catalog.Argument{},
  5422. ReturnType: &ast.TypeName{Name: "bigint"},
  5423. },
  5424. {
  5425. Name: "UNIX_TIMESTAMP",
  5426. Args: []*catalog.Argument{
  5427. {
  5428. Type: &ast.TypeName{Name: "datetime"},
  5429. },
  5430. },
  5431. ReturnType: &ast.TypeName{Name: "bigint"},
  5432. },
  5433. {
  5434. Name: "UPDATEXML",
  5435. Args: []*catalog.Argument{
  5436. {
  5437. Type: &ast.TypeName{Name: "text"},
  5438. },
  5439. {
  5440. Type: &ast.TypeName{Name: "text"},
  5441. },
  5442. {
  5443. Type: &ast.TypeName{Name: "text"},
  5444. },
  5445. },
  5446. ReturnType: &ast.TypeName{Name: "text"},
  5447. },
  5448. {
  5449. Name: "UPPER",
  5450. Args: []*catalog.Argument{
  5451. {
  5452. Type: &ast.TypeName{Name: "text"},
  5453. },
  5454. },
  5455. ReturnType: &ast.TypeName{Name: "text"},
  5456. },
  5457. {
  5458. Name: "USER",
  5459. Args: []*catalog.Argument{},
  5460. ReturnType: &ast.TypeName{Name: "text"},
  5461. },
  5462. {
  5463. Name: "UTC_DATE",
  5464. Args: []*catalog.Argument{},
  5465. ReturnType: &ast.TypeName{Name: "date"},
  5466. },
  5467. {
  5468. Name: "UTC_TIME",
  5469. Args: []*catalog.Argument{},
  5470. ReturnType: &ast.TypeName{Name: "time"},
  5471. },
  5472. {
  5473. Name: "UTC_TIMESTAMP",
  5474. Args: []*catalog.Argument{},
  5475. ReturnType: &ast.TypeName{Name: "datetime"},
  5476. },
  5477. {
  5478. Name: "UUID",
  5479. Args: []*catalog.Argument{},
  5480. ReturnType: &ast.TypeName{Name: "text"},
  5481. },
  5482. {
  5483. Name: "UUID_SHORT",
  5484. Args: []*catalog.Argument{},
  5485. ReturnType: &ast.TypeName{Name: "bigint"},
  5486. },
  5487. {
  5488. Name: "UUID_TO_BIN",
  5489. Args: []*catalog.Argument{
  5490. {
  5491. Type: &ast.TypeName{Name: "text"},
  5492. },
  5493. },
  5494. ReturnType: &ast.TypeName{Name: "binary"},
  5495. },
  5496. {
  5497. Name: "UUID_TO_BIN",
  5498. Args: []*catalog.Argument{
  5499. {
  5500. Type: &ast.TypeName{Name: "text"},
  5501. },
  5502. {
  5503. Type: &ast.TypeName{Name: "tinyint"},
  5504. },
  5505. },
  5506. ReturnType: &ast.TypeName{Name: "binary"},
  5507. },
  5508. {
  5509. Name: "VALIDATE_PASSWORD_STRENGTH",
  5510. Args: []*catalog.Argument{
  5511. {
  5512. Type: &ast.TypeName{Name: "text"},
  5513. },
  5514. },
  5515. ReturnType: &ast.TypeName{Name: "int"},
  5516. },
  5517. {
  5518. Name: "VALUES",
  5519. Args: []*catalog.Argument{
  5520. {
  5521. Type: &ast.TypeName{Name: "any"},
  5522. },
  5523. },
  5524. ReturnType: &ast.TypeName{Name: "any"},
  5525. },
  5526. {
  5527. Name: "VARIANCE",
  5528. Args: []*catalog.Argument{
  5529. {
  5530. Type: &ast.TypeName{Name: "any"},
  5531. },
  5532. },
  5533. ReturnType: &ast.TypeName{Name: "any"},
  5534. },
  5535. {
  5536. Name: "VAR_POP",
  5537. Args: []*catalog.Argument{
  5538. {
  5539. Type: &ast.TypeName{Name: "any"},
  5540. },
  5541. },
  5542. ReturnType: &ast.TypeName{Name: "any"},
  5543. },
  5544. {
  5545. Name: "VAR_SAMP",
  5546. Args: []*catalog.Argument{
  5547. {
  5548. Type: &ast.TypeName{Name: "any"},
  5549. },
  5550. },
  5551. ReturnType: &ast.TypeName{Name: "any"},
  5552. },
  5553. {
  5554. Name: "VERSION",
  5555. Args: []*catalog.Argument{},
  5556. ReturnType: &ast.TypeName{Name: "text"},
  5557. },
  5558. {
  5559. Name: "WAIT_FOR_EXECUTED_GTID_SET",
  5560. Args: []*catalog.Argument{
  5561. {
  5562. Type: &ast.TypeName{Name: "text"},
  5563. },
  5564. {
  5565. Type: &ast.TypeName{Name: "int"},
  5566. HasDefault: true,
  5567. },
  5568. },
  5569. ReturnType: &ast.TypeName{Name: "bool"},
  5570. },
  5571. {
  5572. Name: "WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS",
  5573. Args: []*catalog.Argument{
  5574. {
  5575. Type: &ast.TypeName{Name: "text"},
  5576. },
  5577. {
  5578. Type: &ast.TypeName{Name: "int"},
  5579. HasDefault: true,
  5580. },
  5581. {
  5582. Type: &ast.TypeName{Name: "text"},
  5583. HasDefault: true,
  5584. },
  5585. },
  5586. ReturnType: &ast.TypeName{Name: "bool"},
  5587. },
  5588. {
  5589. Name: "WEEK",
  5590. Args: []*catalog.Argument{
  5591. {
  5592. Type: &ast.TypeName{Name: "date"},
  5593. },
  5594. },
  5595. ReturnType: &ast.TypeName{Name: "int"},
  5596. },
  5597. {
  5598. Name: "WEEK",
  5599. Args: []*catalog.Argument{
  5600. {
  5601. Type: &ast.TypeName{Name: "date"},
  5602. },
  5603. {
  5604. Type: &ast.TypeName{Name: "int"},
  5605. },
  5606. },
  5607. ReturnType: &ast.TypeName{Name: "int"},
  5608. },
  5609. {
  5610. Name: "WEEKDAY",
  5611. Args: []*catalog.Argument{
  5612. {
  5613. Type: &ast.TypeName{Name: "date"},
  5614. },
  5615. },
  5616. ReturnType: &ast.TypeName{Name: "int"},
  5617. },
  5618. {
  5619. Name: "WEEKOFYEAR",
  5620. Args: []*catalog.Argument{
  5621. {
  5622. Type: &ast.TypeName{Name: "date"},
  5623. },
  5624. },
  5625. ReturnType: &ast.TypeName{Name: "int"},
  5626. },
  5627. {
  5628. Name: "WEIGHT_STRING",
  5629. Args: []*catalog.Argument{
  5630. {
  5631. Type: &ast.TypeName{Name: "text"},
  5632. },
  5633. },
  5634. ReturnType: &ast.TypeName{Name: "any"},
  5635. },
  5636. {
  5637. Name: "YEAR",
  5638. Args: []*catalog.Argument{
  5639. {
  5640. Type: &ast.TypeName{Name: "date"},
  5641. },
  5642. },
  5643. ReturnType: &ast.TypeName{Name: "int"},
  5644. },
  5645. {
  5646. Name: "YEARWEEK",
  5647. Args: []*catalog.Argument{
  5648. {
  5649. Type: &ast.TypeName{Name: "date"},
  5650. },
  5651. },
  5652. ReturnType: &ast.TypeName{Name: "int"},
  5653. },
  5654. }
  5655. return s
  5656. }