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

Function invalid

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

Source from the content-addressed store, hash-verified

461
462 #[test]
463 fn invalid() {
464 for sql in [
465 // Empty SELECT
466 "select from t",
467 // Empty FROM
468 "select a from where b = 1",
469 // Empty WHERE
470 "select a from t where",
471 // Empty GROUP BY
472 "select a, count(*) from t group by",
473 // Aggregate without alias
474 "select count(*) from t",
475 // Empty statement
476 "",
477 " ",
478 ] {
479 assert!(parse_sql(sql).is_err());
480 }
481 }
482}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…