MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / TestUnimplementedSyntax

Function TestUnimplementedSyntax

pkg/sql/parser/parse_test.go:3165–3387  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3163}
3164
3165func TestUnimplementedSyntax(t *testing.T) {
3166 testData := []struct {
3167 sql string
3168 issue int
3169 expected string
3170 hint string
3171 }{
3172 {`ALTER TABLE a ALTER CONSTRAINT foo`, 31632, `alter constraint`, ``},
3173 {`ALTER TABLE a ADD CONSTRAINT foo EXCLUDE USING gist (bar WITH =)`, 46657, `add constraint exclude using`, ``},
3174
3175 {`CREATE AGGREGATE a`, 0, `create aggregate`, ``},
3176 {`CREATE CAST a`, 0, `create cast`, ``},
3177 {`CREATE CONSTRAINT TRIGGER a`, 28296, `create constraint`, ``},
3178 {`CREATE CONVERSION a`, 0, `create conversion`, ``},
3179 {`CREATE DEFAULT CONVERSION a`, 0, `create def conv`, ``},
3180 {`CREATE EXTENSION a`, 0, `create extension a`, ``},
3181 {`CREATE FOREIGN DATA WRAPPER a`, 0, `create fdw`, ``},
3182 {`CREATE FOREIGN TABLE a`, 0, `create foreign table`, ``},
3183 {`CREATE FUNCTION a`, 17511, `create`, ``},
3184 {`CREATE OR REPLACE FUNCTION a`, 17511, `create`, ``},
3185 {`CREATE LANGUAGE a`, 17511, `create language a`, ``},
3186 {`CREATE MATERIALIZED VIEW a`, 41649, ``, ``},
3187 {`CREATE OPERATOR a`, 0, `create operator`, ``},
3188 {`CREATE PUBLICATION a`, 0, `create publication`, ``},
3189 {`CREATE RULE a`, 0, `create rule`, ``},
3190 {`CREATE SERVER a`, 0, `create server`, ``},
3191 {`CREATE SUBSCRIPTION a`, 0, `create subscription`, ``},
3192 {`CREATE TEXT SEARCH a`, 7821, `create text`, ``},
3193 {`CREATE TRIGGER a`, 28296, `create`, ``},
3194
3195 {`DROP AGGREGATE a`, 0, `drop aggregate`, ``},
3196 {`DROP CAST a`, 0, `drop cast`, ``},
3197 {`DROP COLLATION a`, 0, `drop collation`, ``},
3198 {`DROP CONVERSION a`, 0, `drop conversion`, ``},
3199 {`DROP DOMAIN a`, 27796, `drop`, ``},
3200 {`DROP EXTENSION a`, 0, `drop extension a`, ``},
3201 {`DROP FOREIGN TABLE a`, 0, `drop foreign table`, ``},
3202 {`DROP FOREIGN DATA WRAPPER a`, 0, `drop fdw`, ``},
3203 {`DROP FUNCTION a`, 17511, `drop `, ``},
3204 {`DROP LANGUAGE a`, 17511, `drop language a`, ``},
3205 {`DROP OPERATOR a`, 0, `drop operator`, ``},
3206 {`DROP PUBLICATION a`, 0, `drop publication`, ``},
3207 {`DROP RULE a`, 0, `drop rule`, ``},
3208 {`DROP SCHEMA a`, 26443, `drop`, ``},
3209 {`DROP SERVER a`, 0, `drop server`, ``},
3210 {`DROP SUBSCRIPTION a`, 0, `drop subscription`, ``},
3211 {`DROP TEXT SEARCH a`, 7821, `drop text`, ``},
3212 {`DROP TRIGGER a`, 28296, `drop`, ``},
3213 {`DROP TYPE a`, 27793, `drop type`, ``},
3214
3215 {`DISCARD PLANS`, 0, `discard plans`, ``},
3216 {`DISCARD SEQUENCES`, 0, `discard sequences`, ``},
3217 {`DISCARD TEMP`, 0, `discard temp`, ``},
3218 {`DISCARD TEMPORARY`, 0, `discard temp`, ``},
3219
3220 {`SET CONSTRAINTS foo`, 0, `set constraints`, ``},
3221 {`SET LOCAL foo = bar`, 32562, ``, ``},
3222 {`SET foo FROM CURRENT`, 0, `set from current`, ``},

Callers

nothing calls this directly

Calls 3

ParseFunction · 0.92
ContainsMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…