Skip to content

Commit

Permalink
fix crdb test
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed Aug 23, 2024
1 parent fe1680e commit 808e90b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,19 @@ fn parses_doc_no_alias(api: TestApi) {
api.introspect_sql("test_1", sql).send_sync().expect_result(expected)
}

#[test_connector(tags(Postgres))]
#[test_connector(tags(Postgres), exclude(CockroachDb))]
fn parses_doc_enum_name(api: TestApi) {
api.schema_push(ENUM_SCHEMA).send().assert_green();

let expected = expect![[r#"
IntrospectSqlQueryOutput {
name: "test_1",
source: "\n -- @param {MyFancyEnum} $1\n SELECT 'col' as \"col\" WHERE 1 = $1;\n ",
source: "\n -- @param {MyFancyEnum} $1:alias\n SELECT 'col' as \"col\" WHERE 1 = $1;\n ",
documentation: None,
parameters: [
IntrospectSqlQueryParameterOutput {
documentation: None,
name: "int4",
name: "alias",
typ: "MyFancyEnum",
nullable: false,
},
Expand All @@ -164,7 +164,7 @@ fn parses_doc_enum_name(api: TestApi) {
"#]];

let sql = r#"
-- @param {MyFancyEnum} $1
-- @param {MyFancyEnum} $1:alias
SELECT 'col' as "col" WHERE 1 = ?;
"#;

Expand Down

0 comments on commit 808e90b

Please sign in to comment.