New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

columnInfo is not using wrapIdentifier #2402

Closed
seeden opened this Issue Jan 1, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@seeden

seeden commented Jan 1, 2018

we are using automatic camelCase transition for tableName and columns as well.
but columnInfo is not changing tableName

const bindings = [this.single.table, this.client.database()];

@elhigu

This comment has been minimized.

Collaborator

elhigu commented Jan 2, 2018

Yeah, there are many places specially in schema methods, which are not using wrapIdentifier correctly. These should be tested and fixed.

@elhigu elhigu assigned elhigu and unassigned elhigu Jan 2, 2018

@elhigu elhigu added the bug label Jan 2, 2018

@koskimas

This comment has been minimized.

Collaborator

koskimas commented Jan 2, 2018

I'm working on a fix for this. I'll submit a PR soon.

koskimas pushed a commit to koskimas/knex that referenced this issue Jan 2, 2018

koskimas pushed a commit to koskimas/knex that referenced this issue Jan 2, 2018

@elhigu elhigu closed this in #2405 Jan 2, 2018

elhigu added a commit that referenced this issue Jan 2, 2018

Use wrapIdentifier in columnInfo. fixes #2402 (#2405)
* Make postgres client wrapIdentifierImpl independent of `this` context

 * Also fixes a bug where only single digit indices were accepted.

* add customWrapIdentifier helper for client

 * customWrapIdentifier is one more level of abstraction for the wrapIdentifier "pipeline"
   that allows the custom wrapIdentifier to be called without calling the `wrapIdentifierImpl`

* bufix: use custom wrapIdentifier in columnInfo. fixes #2402
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment