Skip to content

Commit

Permalink
update pg & sqlite tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed Aug 12, 2024
1 parent de31d27 commit 119ee81
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions schema-engine/sql-migration-tests/tests/query_introspection/pg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,30 +60,37 @@ mod common {
IntrospectSqlQueryColumnOutput {
name: "int",
typ: "int",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "string",
typ: "string",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "bigint",
typ: "bigint",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "float",
typ: "double",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "bytes",
typ: "bytes",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "bool",
typ: "bool",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "dt",
typ: "datetime",
nullable: false,
},
],
}
Expand Down Expand Up @@ -112,6 +119,7 @@ mod common {
IntrospectSqlQueryColumnOutput {
name: "int",
typ: "int",
nullable: false,
},
],
}
Expand Down Expand Up @@ -147,10 +155,12 @@ mod common {
IntrospectSqlQueryColumnOutput {
name: "id",
typ: "int",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "enum",
typ: "MyFancyEnum",
nullable: false,
},
],
}
Expand Down Expand Up @@ -189,6 +199,7 @@ mod postgres {
IntrospectSqlQueryColumnOutput {
name: "add",
typ: "int",
nullable: false,
},
],
}
Expand All @@ -213,6 +224,7 @@ mod postgres {
IntrospectSqlQueryColumnOutput {
name: "?column?",
typ: "int",
nullable: false,
},
],
}
Expand Down Expand Up @@ -298,6 +310,7 @@ mod crdb {
IntrospectSqlQueryColumnOutput {
name: "?column?",
typ: "bigint",
nullable: false,
},
],
}
Expand All @@ -322,6 +335,7 @@ mod crdb {
IntrospectSqlQueryColumnOutput {
name: "add",
typ: "bigint",
nullable: false,
},
],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,30 +81,37 @@ fn select_sqlite(api: TestApi) {
IntrospectSqlQueryColumnOutput {
name: "int",
typ: "int",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "string",
typ: "string",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "bigint",
typ: "bigint",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "float",
typ: "double",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "bytes",
typ: "bytes",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "bool",
typ: "bool",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "dt",
typ: "datetime",
nullable: false,
},
],
}
Expand Down Expand Up @@ -133,6 +140,7 @@ fn empty_result(api: TestApi) {
IntrospectSqlQueryColumnOutput {
name: "int",
typ: "int",
nullable: false,
},
],
}
Expand Down Expand Up @@ -482,6 +490,7 @@ fn subquery(api: TestApi) {
IntrospectSqlQueryColumnOutput {
name: "int",
typ: "int",
nullable: false,
},
],
}
Expand All @@ -506,10 +515,12 @@ fn left_join(api: TestApi) {
IntrospectSqlQueryColumnOutput {
name: "parentId",
typ: "int",
nullable: false,
},
IntrospectSqlQueryColumnOutput {
name: "childId",
typ: "int",
nullable: false,
},
],
}
Expand Down

0 comments on commit 119ee81

Please sign in to comment.