Skip to content

Conversation

@PKBadiger
Copy link

Wrong INTEGER value was returned #156

import vertica from "vertica-nodejs";
const { Client } = vertica;

const client = new Client("vertica://dbadmin:@host:5433/dbname");
client.connect();
client.query("SELECT CAST(205900366134250666 AS VARCHAR) AS keyCast, 205900366134250666 AS keyOrig;", (err, res) => {
console.log(err || res.rows[0]);
client.end();
});

output:

node main.js

{ keyCast: '205900366134250666', keyOrig: 205900366134250660 }

…returns the value as a string, preserving precision
@CLAassistant
Copy link

CLAassistant commented Sep 5, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ PKBadiger
❌ pbadigerot
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Successfully merging this pull request may close these issues.

3 participants