(value)
| 16 | } |
| 17 | |
| 18 | getSQLTypeFromJsType(value) { |
| 19 | if (Buffer.isBuffer(value)) { |
| 20 | return { ParamType: 'INPUT', DataType: 'BLOB', Data: value }; |
| 21 | } |
| 22 | |
| 23 | if (typeof value === 'bigint') { |
| 24 | // The ibm_db module does not handle bigint, send as a string instead: |
| 25 | return value.toString(); |
| 26 | } |
| 27 | |
| 28 | return value; |
| 29 | } |
| 30 | |
| 31 | async _run(connection, sql, parameters) { |
| 32 | this.sql = sql; |
no test coverage detected