fix(phoenix): preserve schema in all table references
This commit is contained in:
1 parent
e139f63953
commit
f2e13922a2
18 files changed
+200
-9
No files matched your search
@@ -4547,6 +4547,19 @@ mod tests {
|
||||
}),
|
||||
"SELECT COUNT(*) AS cnt FROM \"public\".\"users\" WHERE (active = true)"
|
||||
);
|
||||
assert_eq!(
|
||||
build_data_grid_count_sql(DataGridCountSqlOptions {
|
||||
database_type: Some(DatabaseType::Jdbc),
|
||||
identifier_quote: None,
|
||||
catalog: None,
|
||||
database: None,
|
||||
schema: Some("DEMO".to_string()),
|
||||
table_name: "STUDENT".to_string(),
|
||||
where_input: None,
|
||||
count_hint: None,
|
||||
}),
|
||||
"SELECT COUNT(*) AS cnt FROM DEMO.STUDENT"
|
||||
);
|
||||
assert_eq!(
|
||||
build_data_grid_count_sql(DataGridCountSqlOptions {
|
||||
database_type: Some(DatabaseType::Doris),
|
||||
|
||||
Reference in new issue
Block a user