fix(csv): stop wrapping exported dates in equals-prefixed formulas
This commit is contained in:
1 parent
6f05afc0e6
commit
ce5217bd23
7 files changed
+25
-59
No files matched your search
@@ -1704,6 +1704,21 @@ describe("useDataGridExport prepared row statements", () => {
|
||||
expect(exportQueryResultCsv).toHaveBeenLastCalledWith(expect.any(String), ["_id", "value"], [["1", reservedString]], expect.anything(), expect.anything());
|
||||
});
|
||||
|
||||
it("exports temporal CSV values without an Excel formula wrapper (#10694)", async () => {
|
||||
setActivePinia(createPinia());
|
||||
const timestamp = "2026-09-30 12:34:56.789";
|
||||
const table: DataGridTableMeta = {
|
||||
tableName: "events",
|
||||
primaryKeys: [],
|
||||
columns: [{ name: "created_at", data_type: "timestamp" }],
|
||||
};
|
||||
const state = createExportState(table, ["created_at"], undefined, [timestamp]);
|
||||
|
||||
await state.exportCurrentPageCsv();
|
||||
|
||||
expect(exportQueryResultCsv).toHaveBeenLastCalledWith(expect.any(String), ["created_at"], [[timestamp]], expect.anything(), expect.anything());
|
||||
});
|
||||
|
||||
it("exports only visible Mongo columns from the full result set", async () => {
|
||||
setActivePinia(createPinia());
|
||||
const state = createMongoExportState({
|
||||
|
||||
Reference in new issue
Block a user