no-mistakes-postgres-sql 0.109.129

PostgreSQL SQL parsing, statement facts, and identifier extraction for no-mistakes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::shape;

#[test]
fn materialized_drops_preserve_temporary_wrong_kind_namesakes() {
    let sql = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../test-cases/rules/postgres-bounded-statements/fixture/sql/temporary-materialized-namesake.sql"));
    assert_eq!(
        shape(sql),
        [
            "select: opaque",
            "select: opaque",
            "select: order_lines",
            "select: opaque",
            "select: opaque",
            "select: orders"
        ]
    );
}