Skip to content

Commit

Permalink
Add none typings for basic case
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Jul 25, 2024
1 parent 55231b0 commit 848e136
Show file tree
Hide file tree
Showing 3 changed files with 669 additions and 298 deletions.
4 changes: 2 additions & 2 deletions drizzle-orm/src/sql/sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class SQL<T = unknown> implements SQLWrapper {
return { sql: this.mapInlineParam(mappedValue, config), params: [] };
}

let typings: QueryTypingsValue[] | undefined;
let typings: QueryTypingsValue[] = ['none'];
if (prepareTyping) {
typings = [prepareTyping(chunk.encoder)];
}
Expand Down Expand Up @@ -263,7 +263,7 @@ export class SQL<T = unknown> implements SQLWrapper {
return { sql: this.mapInlineParam(chunk, config), params: [] };
}

return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk] };
return { sql: escapeParam(paramStartIndex.value++, chunk), params: [chunk], typings: ['none'] };
}));
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "pnpm test:vitest",
"test:vitest": "vitest run",
"test:esm": "node tests/imports.test.mjs && node tests/imports.test.cjs",
"test:data-api": "sst shell vitest run tests/awsdatapi.test.ts"
"test:data-api": "sst shell vitest run tests/pg/awsdatapi.test.ts"
},
"keywords": [],
"author": "Drizzle Team",
Expand Down
Loading

0 comments on commit 848e136

Please sign in to comment.