mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-13 07:20:58 +08:00
- 抽取表查询模板 helper 并统一复用方言标识符引用逻辑 - 修正 Sidebar 与 TableOverview 的表节点新建查询入口 - 补充前端回归测试并更新 issue backlog 记录 Fixes #349
10 lines
347 B
TypeScript
10 lines
347 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import { buildTableSelectQuery } from './objectQueryTemplates';
|
|
|
|
describe('buildTableSelectQuery', () => {
|
|
it('quotes uppercase postgres table names in new query templates', () => {
|
|
expect(buildTableSelectQuery('postgres', 'public.MyTable')).toBe('SELECT * FROM public."MyTable";');
|
|
});
|
|
});
|