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

Function invalid

crates/expr/src/statement.rs:537–551  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

535
536 #[test]
537 fn invalid() {
538 let tx = SchemaViewer(module_def());
539
540 for sql in [
541 // Unqualified columns in a join
542 "select id, str from s join t",
543 // Wrong type for limit
544 "select * from t limit '5'",
545 // Unqualified name in join expression
546 "select t.* from t join s on t.u32 = s.u32 where bytes = 0xABCD",
547 ] {
548 let result = parse_and_type_sql(sql, &tx);
549 assert!(result.is_err());
550 }
551 }
552
553 /// Manually build the AST for a recursive query,
554 /// because we limit the length of the query to prevent stack overflow on parsing.

Callers

nothing calls this directly

Calls 3

parse_and_type_sqlFunction · 0.85
SchemaViewerClass · 0.70
module_defFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…