We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to insert some binary data with Buffer objects, and when I fetched the data, it gave me the wrong result like:
Buffer
[ { id: 'ޭ��' } ]
To replicate:
await knex.schema.createTable("binary_data", (table) => { table.binary("id", 4) }) await knex.table('binary_data').insert({ id: Buffer.from([0xde, 0xad, 0xbe, 0xef]) }) console.log(await this.knex.select().from('binary_data')) // output: [{ id: 'ޭ��' }]
I can replicate this when I connect to a remote database. Memory or file database works fine.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried to insert some binary data with
Buffer
objects, and when I fetched the data, it gave me the wrong result like:To replicate:
I can replicate this when I connect to a remote database. Memory or file database works fine.
The text was updated successfully, but these errors were encountered: