typed-knex icon indicating copy to clipboard operation
typed-knex copied to clipboard

Some property names are incomplete after a query

Open voinik opened this issue 3 years ago • 0 comments

Issue type:

[ ] Question [x] Bug report [ ] Feature request [ ] Documentation issue

Database system/driver:

[x] Postgres [ ] MSSQL [ ] MySQL [ ] MariaDB [ ] SQLite3 [ ] Oracle [ ] Amazon Redshift

typed-knex version:

[x] latest [ ] @next [ ] 0.x.x (or put your version here)

Knex.js version: 0.21.8

Steps to reproduce or a small repository showing the problem: See https://github.com/voinik/typedKnexBugTest/tree/master

Edit: I've found the culprit. It's not TypedKnex, it's postgres:

NOTICE: identifier "paymentProviderCustomerReference.organization.accessUntilExtended" will be truncated to "paymentProviderCustomerReference.organization.accessUntilExtend"

The same thing happens in Knex.

Do you think you want to fix this problem within TypedKnex, or will you leave it up to the devs to be aware of this postgres behavior?

voinik avatar Sep 15 '21 20:09 voinik