Commit Graph

505 Commits

Author SHA1 Message Date
Christopher Jones ac34abbbd7 Delete the baton before the callback is made; this ensures that any unnecessary ODPI-C handles are freed as soon as possible and it also avoids a race condition with freeing LOBs and reading from other LOBs at the same time 2017-06-14 10:18:32 +10:00
Christopher Jones 2324f62429 update test list 2017-06-14 10:17:41 +10:00
Christopher Jones d4cb0508c7 Rowid tests 2017-06-14 10:17:03 +10:00
Christopher Jones 313df146be plsql bind timestamp types IN 2017-06-14 10:14:31 +10:00
Christopher Jones 598177e8b9 Combine negative cases of pool.terminate() into one suite 2017-06-14 10:13:17 +10:00
Christopher Jones e37447454c ROWID tests 2017-06-14 10:12:02 +10:00
Christopher Jones 249074abfd DML bind timestamp data 2017-06-14 10:11:11 +10:00
Christopher Jones 413f6a87b0 Remove support for nested cursors temporarily until decisions can be made on the desired behavior 2017-06-14 10:10:18 +10:00
Christopher Jones cad1124da8 Add constants DB_TYPE_LONG and DB_TYPE_LONG_RAW for the LONG and LONG RAW types respectively 2017-06-14 10:08:03 +10:00
Christopher Jones f9a1eec49f Add tests for fetching TIMESTAMP as String 2017-06-14 09:56:52 +10:00
Christopher Jones c020e2961d Reinforce that ODPI-C does not take PRs 2017-06-14 09:55:28 +10:00
Christopher Jones afe36f4aec Transform error "ORA-1406: fetched column value was truncated" to error "NJS-016: buffer is too small for OUT binds" in order to improve understanding of the issue by the end user. 2017-06-14 09:53:47 +10:00
Christopher Jones 9183bd6a1c Test updates 2017-06-14 09:53:09 +10:00
Christopher Jones a279f5682d No need to list headers in the sources 2017-06-14 09:52:24 +10:00
Christopher Jones 9921cb3b58 Bump version 2017-06-14 09:51:44 +10:00
Christopher Jones f7e5e1b76c Implement ODPI-C dynamic binding of OCI (Windows support still needed) 2017-06-14 09:47:32 +10:00
Christopher Jones d373e2bc3e Remove references to DPI_ORACLE_TYPE_LONG_NVARCHAR which are no longer needed 2017-06-14 09:41:16 +10:00
Christopher Jones 4fbc7d411d Eliminate spurious error messages while looking for the default bind type and max size to use for an array; instead, let the actual processing of the array bind catch inconsistencies in the types of data being bound 2017-06-14 09:37:57 +10:00
Christopher Jones beab9e63b5 Treat EMPTY_BLOB() as NULL as well as EMPTY_CLOB() -- keeping same behavior as v1 2017-06-14 09:35:20 +10:00
Christopher Jones be53eb3341 Silence warnings from the Microsoft C++ compiler 2017-06-14 09:33:01 +10:00
Christopher Jones 0448cdc210 Retrieval of LONGS is now supported so test will need to be updated 2017-06-14 09:30:28 +10:00
Christopher Jones 9fd568a052 Ensure that LONG RAW is returned as a Buffer, not as a String 2017-06-14 09:29:35 +10:00
Christopher Jones ad5d4089da Added support for fetching LONG and LONG RAW columns 2017-06-14 09:27:59 +10:00
Christopher Jones f5e5b7f894 Correct if clause and ensure that all string types (including rowid) are not adjusted by fetchInfo or fetchAsString -- the metadata provided by Oracle is already sufficient and (in the case of rowid) prevents an error from taking place when the default length of 200 is insufficient. 2017-06-14 09:26:32 +10:00
Christopher Jones 97c2f251ef Test does not need to be skipped 2017-06-14 09:25:48 +10:00
Christopher Jones 88375dff96 Correct support for rowids (both regular and universal) 2017-06-14 09:24:35 +10:00
Christopher Jones 5b16343341 Treat zero length string as NULL at all times, not just when the Oracle database converts it that way 2017-06-14 09:23:25 +10:00
Christopher Jones 6906454743 Create a new baton when additional rows need to be fetched. This works around an issue with Node.js 0.12 and is likely a safer implementation anyway 2017-06-14 09:22:47 +10:00
Christopher Jones dd72938ece Eliminate copmiler warnings 2017-06-14 09:19:48 +10:00
Christopher Jones a807e2f6f1 Renamed submodule dpic to odpi 2017-06-14 09:17:58 +10:00
Christopher Jones 2c836a2478 Updated ODPI-C (add ability to set/get default statement cache size for pool) 2017-06-14 09:16:21 +10:00
Christopher Jones 3949e1f9e4 Set the statement cache size on the connection that was just acquired. 2017-06-14 09:14:51 +10:00
Christopher Jones a9be1962fa Updated ODPI-C (universal rowid support) 2017-06-14 09:14:21 +10:00
Christopher Jones 0e5900876f Remove unnecessary restriction on binding zero-length PL/SQL arrays 2017-06-14 09:13:32 +10:00
Christopher Jones 9822928658 Updated ODPI-C (simplified error handling and introduction of context) 2017-06-14 09:12:41 +10:00
Christopher Jones 7db90133f2 Update to latest version of ODPI-C; invalid ref cursor is determined earlier than in v1 so accommodate those changes 2017-06-14 09:07:27 +10:00
Christopher Jones c1dcf01ed7 Null is explicitly accepted as a value which is effectively ignored. The original value is left untouched in that case 2017-06-14 09:06:41 +10:00
Christopher Jones 388bbe12c0 Comment result output 2017-06-14 09:06:05 +10:00
Christopher Jones 044b972b31 Restore linking against libclntsh and build ODPI-C source code directly into the driver 2017-06-14 09:05:40 +10:00
Christopher Jones a61a327490 Updated to new version of DPI using new naming methodology. 2017-06-14 08:58:55 +10:00
Christopher Jones dbaaab02b3 Add support for fetching CLOBs as plain strings. 2017-06-14 08:57:23 +10:00
Christopher Jones c267e9769d Updated to latest version of DPI which supports binding and fetching of arbitrarily long strings in place of LOBs 2017-06-14 08:56:48 +10:00
Christopher Jones c19c502b31 Update for new ODPI-C changes 2017-06-14 08:56:15 +10:00
Christopher Jones 997c521eed Simplified dpiStmt_FetchRows() in ODPI-C so that it behaves in a more consistent fashion and reduces the number of calls that need to be made 2017-06-14 08:55:40 +10:00
Christopher Jones 1ae002a99e Use functions to get and set attributes, rather than a pair of generic attribute manipulation functions. 2017-06-14 08:54:39 +10:00
Christopher Jones 85d7d87488 Update to latest version of ODPI-C 2017-06-14 08:53:02 +10:00
Christopher Jones 11811aead9 Updated to new version of the ODPI-C library 2017-06-14 08:51:55 +10:00
Christopher Jones 2a1ae1225d Added submodule for the ODPI-C repository code and adjusted binding.gyp to make use of it 2017-06-14 08:49:32 +10:00
Christopher Jones 1f627a52e3 Updated to take into account changes made to ODPI-C 2017-06-14 08:43:30 +10:00
Christopher Jones 9ff3ae1760 Bump version to keep in sync with v1 2017-06-14 08:39:12 +10:00