Skip to content
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

Prepared statement using LIKE operator #109

Open
negreanucalin opened this issue Dec 19, 2022 · 0 comments
Open

Prepared statement using LIKE operator #109

negreanucalin opened this issue Dec 19, 2022 · 0 comments

Comments

@negreanucalin
Copy link

negreanucalin commented Dec 19, 2022

I am unable to use LIKE operator with prepared statements, ex:

let result = await this.vertica.getPool().query({
    name: 'getByCallId',
    text: 'SELECT * FROM test_calls WHERE call_id LIKE ?,
    values: [ '%b452657-f7cf-123b-849c-288023acae0%' ] // Tried to see if removing start and end char works
});

Expected:
As in the SQL editor to retrieve results

image

Actual:
No results

Versions
Node v16.19.0
Vertica 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant