You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My app is using the .first() method on a query and with snowflake I was getting back a single item in an array instead of the first element in that array, it appears it's because the code to handle _method === 'first' is commented out in the adapter (
// if (obj.method === 'first') return resp.rows[0];
), so the end result is identical to the where() result without unwrapping the first row.
My use case works with this line added back, and a tweak to downcase columns in the first row. Was this just never implemented or was it commented out at some point for some reason?
The text was updated successfully, but these errors were encountered:
My app is using the .first() method on a query and with snowflake I was getting back a single item in an array instead of the first element in that array, it appears it's because the code to handle _method === 'first' is commented out in the adapter (
data-knex-snowflake-dialect/src/index.ts
Line 186 in f4b6abe
My use case works with this line added back, and a tweak to downcase columns in the first row. Was this just never implemented or was it commented out at some point for some reason?
The text was updated successfully, but these errors were encountered: