on 02-01-2019 2:04 PM
Hello, I am trying to set default schema for $.hdb connection. please suggest.
try{ var conn = $.hdb.getConnection(); var query = 'SET SCHEMA SBODEMOUS'; var rs = conn.executeQuery(query); query = 'SELECT TOP ? "CardCode", "CardName", "Balance" FROM OCRD WHERE "CardType"=?'; rs = conn.executeQuery(query, topRecords, bpType); conn.close(); return rs; } catch (err) { $.response.setBody(err.message); }
The SET SCHEMA statement cannot be executed via the executeQuery function of the connection object. Function executeUpdate has to be used.
conn.executeUpdate('SET SCHEMA SBODEMOUS');
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.