Skip to content

Commit

Permalink
snowflake always use upper case column name
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Nov 21, 2024
1 parent cfaff2f commit 49991af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/connections/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ describe('Database Connection', () => {

const sql =
process.env.CONNECTION_TYPE === 'mysql'
? 'SELECT CONCAT(:hello, :world) AS testing_word'
: 'SELECT (:hello || :world) AS testing_word';
? 'SELECT CONCAT(:hello, :world) AS TESTING_WORD'
: 'SELECT (:hello || :world) AS TESTING_WORD';

const { data } = await db.raw(sql, {
hello: 'hello ',
world: 'world',
});

expect(data).toEqual([{ testing_word: 'hello world' }]);
expect(data).toEqual([{ TESTING_WORD: 'hello world' }]);
});

test('Support positional placeholder', async () => {
Expand Down

0 comments on commit 49991af

Please sign in to comment.