You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry I'm posting this again, but I'm still having this issue and I don't know if I can re-open the closed issue. I put added some comments on the other issue, but I don't know if anyone will read them.
I'm using node-vertica version 0.5.2 and Vertica Analytic Database v7.1.1-0. I'm facing an issue where when I call disconnect(), I always see this message in the server log:
Unexpected EOF on client connection
I'm simply executing a query and then disconnecting:
varvertica=require('vertica')var_=require('lodash')varverticaSettings={<props>}vertica.connect(verticaSettings,function(err,conn){if(err){console.log('connection error',err)}else{queryVertica("select count(*) from sessions",conn,function(err,results){console.log('err = ',err)console.log('results = ',results)conn.disconnect()})}})
I noticed that vertica provides the finish() method in their odbc driver and if finish() is called from perl, then there is no 'Unexpected EOF' message:
$query = "SELECT distinct Calendar_Month_Name FROM Date_Dimension";
$sth = $dbh->prepare($query);
$sth->execute();
# Bind the variables and then look throuhg the results
$sth->bind_columns(undef, \$month );
while($sth->fetch())
{
print "$month\n"
}
# Disconnect from the database
$sth->finish;
$dbh->disconnect
or warn "Disconnection failed: $DBI::errstr\n";
exit;
I couldn't find a 'finish' call in the node-vertica module. Perhaps this is the problem?
The text was updated successfully, but these errors were encountered:
Hi All,
I am working on a very big project utilizing your driver and I'm experiencing the same problem.
Every time I close a connection I get the msg : Unexpected EOF on client connection.
I read it might be caused by closing the connection incorrectly.
Is there a fix on the horizon?
Thanks.
I am not planning on working on this any time soon, because I don't work with either node, nor Vertica anymore on a daily basis. I would welcome a fix though.
Hi,
Sorry I'm posting this again, but I'm still having this issue and I don't know if I can re-open the closed issue. I put added some comments on the other issue, but I don't know if anyone will read them.
I'm using node-vertica version 0.5.2 and Vertica Analytic Database v7.1.1-0. I'm facing an issue where when I call disconnect(), I always see this message in the server log:
Unexpected EOF on client connection
I'm simply executing a query and then disconnecting:
The log file still indicates an Unexpected EOF:
I noticed that vertica provides the finish() method in their odbc driver and if finish() is called from perl, then there is no 'Unexpected EOF' message:
I couldn't find a 'finish' call in the node-vertica module. Perhaps this is the problem?
The text was updated successfully, but these errors were encountered: