Skip to content
This repository

cannot insert/update #8

Closed
michael88 opened this Issue September 28, 2012 · 3 comments

3 participants

michael88 Henri Gourvest Serkan KOCAMAN
michael88

Hello,

if i try to insert a record, for example:

conn.execute("insert into code_gema_land (land,wert) values(?,?)",['DE',3]

I get the following error:

/home/michael/node_modules/node-firebird/lib/index.js:965
callback(ret)
^
ReferenceError: ret is not defined
at /home/michael/node_modules/node-firebird/lib/index.js:965:38
at doCallback (/home/michael/node_modules/node-firebird/lib/index.js:870:9)
at Socket. (/home/michael/node_modules/node-firebird/lib/index.js:1124:13)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:341:14)

It seems, only select statements are possible , what are I'm doing wrong? (The insert statement ist ok - i checked it with isql)

Serkan KOCAMAN

hi you try set callback function in execute command ?

conn.execute("insert into code_gema_land (land, wert) values(?, ?)", ['DE', 3], function (result) { });

i dont know just idea.

michael88

Yes, I tried it with and without callback function(s).

Serkan KOCAMAN

oh ok sorry. i tried this yes have a same problem.

Henri Gourvest hgourvest closed this issue from a commit September 30, 2012
Henri Gourvest fix #8 e57fc99
Henri Gourvest hgourvest closed this in e57fc99 September 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.