Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

cannot insert/update #8

Closed
michael88 opened this Issue · 3 comments

3 participants

@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)

@KiPSOFT

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).

@KiPSOFT

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

@hgourvest hgourvest closed this issue from a commit
@hgourvest fix #8 e57fc99
@hgourvest hgourvest closed this in e57fc99
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.