Skip to content

Consistent Column count with null values across resultset#26

Open
gkarthiks wants to merge 2 commits into
rodhoward:masterfrom
gkarthiks:master
Open

Consistent Column count with null values across resultset#26
gkarthiks wants to merge 2 commits into
rodhoward:masterfrom
gkarthiks:master

Conversation

@gkarthiks

@gkarthiks gkarthiks commented Jan 11, 2018

Copy link
Copy Markdown

Issue Reference: #25

Description:

The previous version was ignoring the columns having null values for any records at any position.

So for example, if the first row has null for column number 2, then that column will not be added. If the next row has null for 3rd column and that will not be added in the JSON resulting in inconsistent column counts across the result set JSON.

  1. Adding the attribute allowNull as an optional parameter to include null valued columns in the response JSON for maintaining the consistent column count across rows. If not passed, then the driver will work as earlier. No need to change anything, already backward compatible.
  2. Added the auto created JavaDoc files.

TODOs:

  • Ready to review
  • Ready to merge

Comment thread src/SybaseDB.js
{
var that = this;
this.javaDB = spawn('java',["-jar",this.pathToJavaBridge, this.host, this.port, this.dbname, this.username, this.password]);
this.javaDB = spawn('java',["-jar",this.pathToJavaBridge, this.host, this.port, this.dbname, this.username, this.password, this.allowNull]);

@ktordoff13 ktordoff13 Jan 28, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am getting an error when allowNull is set to true
Error: Expecting the arguments: host, port, dbname, username, password

@theneva

theneva commented Jan 31, 2020

Copy link
Copy Markdown
Collaborator

Hi! This repo is no longer maintained (nobody here has access to a Sybase instance to test it anymore), so I'm afraid this is pretty unlikely to get merged.

@cezarcatarin

Copy link
Copy Markdown

Oi! Este repo não é mais mantido (ninguém aqui tem acesso a uma instância do Sybase para testá-lo), então temo que seja muito improvável que seja mesclado.

I'm having this same problem, can anyone accept the pull request? can i help to test

@lroal

lroal commented Sep 22, 2021

Copy link
Copy Markdown

I am having the same problem. This is a big show stopper.

@gkarthiks

Copy link
Copy Markdown
Author

If anyone is ready to accept this, I can rebase and resolve conflicts.

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.

5 participants