MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / unsupported

Function unsupported

crates/sql-parser/src/parser/sql.rs:402–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

400
401 #[test]
402 fn unsupported() {
403 for sql in [
404 // FROM is required
405 "select 1",
406 // Multi-part table names
407 "select a from s.t",
408 // Bit-string literals
409 "select * from t where a = B'1010'",
410 // Wildcard with non-wildcard projections
411 "select a.*, b, c from t",
412 // Limit expression
413 "select * from t order by a limit b",
414 // GROUP BY
415 "select a, count(*) from t group by a",
416 // Join updates
417 "update t as a join s as b on a.id = b.id set c = 1",
418 // Join updates
419 "update t set a = 1 from s where t.id = s.id and s.b = 2",
420 // Implicit joins
421 "select a.* from t as a, s as b where a.id = b.id and b.c = 1",
422 // Joins require qualified vars
423 "select t.* from t join s on int = u32",
424 ] {
425 assert!(parse_sql(sql).is_err());
426 }
427 }
428
429 #[test]
430 fn supported() {

Callers 2

parse_literal_exprFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…