amitkr / nodejs-db-informix

Infomix bindings for nodejs
MIT License
3 stars 3 forks source link

trying to pass query as a string silently fails. #13

Open amitkr opened 10 years ago

amitkr commented 10 years ago
    var rs = this
            .query(
                  "select first 1 * from systables"
                , []
                , function (status, results) {
                    console.log('CALLBACK:');
                    // console.log(arguments);
                    console.log("status:" + status);
                    console.log(results);
                }   
                , { 
                    start: function(q) {
                        console.log('Query:');
                        console.log(q);
                    }   
                    , finish: function(f) {
                        console.log('Finish:');
                        console.log(f);
                    }   
                    , async: true
                    , cast: true
                }   
            )   
            .execute();

CALLBACK: status:null { id: 0, affected: 18446744073709552000, warning: 0 } Finish: undefined

amitkr commented 10 years ago

this should be fixed now, however i see other than select all DML's are broken when passed in as string.