fix: remove macOS tray icon title and add SQL Server TOP test
- Remove the "DBX" title text from the macOS menu bar tray icon so it only displays the icon, matching Windows behavior - Add test for SQL Server TOP pagination with aggregate queries like COUNT(*)
This commit is contained in:
1 parent
e5e86eda30
commit
ad7797f451
2 files changed
+13
-5
No files matched your search
@@ -575,6 +575,19 @@ mod tests {
|
||||
assert_eq!(result.sql.unwrap(), "SELECT TOP (100) id FROM users ORDER BY id DESC");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn uses_sqlserver_top_for_count_queries_without_derived_table() {
|
||||
let result = build_paginated_query_sql(PaginatedQuerySqlOptions {
|
||||
original_sql: "SELECT COUNT(*) FROM TicketInfo".to_string(),
|
||||
database_type: Some(DatabaseType::SqlServer),
|
||||
limit: 100,
|
||||
offset: 0,
|
||||
});
|
||||
|
||||
assert_eq!(result.ok, true);
|
||||
assert_eq!(result.sql.unwrap(), "SELECT TOP (100) COUNT(*) FROM TicketInfo");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn wraps_sqlserver_select_with_unnamed_column() {
|
||||
let result = build_paginated_query_sql(PaginatedQuerySqlOptions {
|
||||
|
||||
Reference in new issue
Block a user