@miatechnet/node-odbc 2.4.10-multiresult.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,179 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ ## [2.4.7] - 2023-01-26
5
+ ### Fixed
6
+ - Fixed static cursor declaration causeing performance degredatio
7
+ - Fixed a memory leak with certain long binary and character types
8
+
9
+ ## [2.4.6] - 2022-09-22
10
+ ### Fixed
11
+ - Fixed TypeScript definition error preventing compilation
12
+
13
+ ## [2.4.5] - 2022-09-12
14
+ ### Added
15
+ - `primaryKeys` instance function on `Connection` to call ODBC SQLPrimaryKeys function
16
+ - `foreignKeys` instance function on `Connection` to call ODBC SQLForeignKeys function
17
+ - Binaries added for all supported N-API versions for all GitHub Actions runners
18
+
19
+ ### Fixed
20
+ - Fixed VARCHAR(MAX) fields creating 0-sized buffers (MSSQL)
21
+ - Fixed various TypeScript type definitions
22
+
23
+ ## [2.4.4] - 2022-04-26
24
+ ### Fixed
25
+ - Fixed application crashing when `callProcedure` was given the wrong procedure name or number of parameters
26
+ - Fixed TypeScript definition for Connection's `tables` function
27
+
28
+ ### Added
29
+ - `binding.gyp` path for OS400 (IBM i)
30
+
31
+ ## [2.4.3] - 2022-03-31
32
+ ### Fixed
33
+ - Updated dependencies for security fixes
34
+ - Fixed generation of `callProcedure` sql string when `UNICODE` is defined
35
+
36
+ ## [2.4.2] - 2022-02-07
37
+ ### Added
38
+ - `binding.gyp` build instructions for MacOS
39
+ - `Statement`'s `.execute` function can now return a `Cursor` when the correct queryOption is passed
40
+
41
+ ### Fixed
42
+ - `Statement` and `Cursor` should now better handle freeing memory
43
+ - `Connection`'s `.callProcedure` should now work on Windows with `UNICODE` defined
44
+ - Fixed up TypeScript definitions
45
+
46
+
47
+ ## [2.4.1] - 2021-10-19
48
+ ### Added
49
+ - Simple binding path allows driver's that don't implement block fetch and column-wise binding to still be able to fetch results
50
+ - Allow pool.query() to use query options
51
+
52
+ ### Fixed
53
+ - Update timeout definitions in README.md
54
+ - Fixed multiple memory leaks
55
+ - Fixed multiple segfaults
56
+
57
+
58
+ ## [2.4.0] - 2021-07-06
59
+ ### Added
60
+ - NEW Cursor class that is returned when new `cursor` query option is set to `true`. Cursor allows users to fetch partial result sets through calling `fetch`
61
+ - NEW `timeout` query property allows users to define the number of seconds to wait for execution before returning to the application
62
+ - NEW `initialBufferSize` query property property allows users to define the size of a buffer for SQL_LONG data types before resizing
63
+ - Tests for multiple DBMSs added
64
+ - Support for FreeBSD build
65
+
66
+ ### Fixed
67
+ - Connection generation in pools is now more efficient and doesn't block queries
68
+ - Retrieving binary data
69
+ - Improved TypeScript definitions
70
+ - BIGINT fields are now bound by default correctly
71
+ - Fixed multiple memory leaks
72
+ - Fixed multiple uncaught errors
73
+ - Dozens of minor fixes (see GitHub issues)
74
+
75
+ ### Changed
76
+ - SQL_LONG* fields now use SQLGetData ODBC function, greatly increasing performance
77
+ - Connection options can now be passed through to pool connections
78
+ - Debugging no longer done through `DEBUG` define, but through existing connection manager facilities
79
+ - Updated dependencies
80
+
81
+ ## [2.3.6] - 2021-02-19
82
+ - Emergency version to fix a push made to `npm` in error.
83
+
84
+ ## [2.3.5] - 2020-09-14
85
+ ### Fixed
86
+ - Fixed multiple connections being created after `pool.query()` is called.
87
+
88
+ ## [2.3.4] - 2020-08-09
89
+ ### Fixed
90
+ - Fixed bug when UNICODE is defined where statement in result object and column name properties wouldn't encode correctly
91
+ - Update package-lock.json with vulnerability fixes
92
+
93
+ ## [2.3.3] - 2020-07-31
94
+ ### Fixed
95
+ - Fixed bug when UNICODE is defined where error message, error state, and column names wouldn't encode correctly
96
+
97
+ ## [2.3.2] - 2020-07-28
98
+ ### Fixed
99
+ - Fixed bug with REAL, DECIMAL, and NUMERIC fields ocassionaly returning incorrect results
100
+
101
+ ### Changed
102
+ - Windows binaries are now built with `UNICODE` defined by default (like in 1.x)
103
+
104
+ ### Added
105
+ - `columns` array on result set now includes `columnSize`, `decimalDigits`, and `nullable` data from `SQLDescribeCol`
106
+
107
+ ## [2.3.1] - 2020-07-24
108
+ ### Fixed
109
+ - Fixed bug with `callProcedure` on big-endian systems
110
+
111
+ ## [2.3.0] - 2020-05-21
112
+ ### Added
113
+ - `node-pre-gyp` added to dependencies to download pre-built binaries
114
+ - TypeScript definitions added for all functions and objects
115
+
116
+ ### Changed
117
+ - Refactored how column values are bound (now bound to correct C type)
118
+
119
+ ### Fixed
120
+ - Promises no longer overwrite `odbcErrors` object on Errors
121
+ - Parameters can now correctly be classified as integers or doubles
122
+ - Multi-byte UTF-8 strings are now returned correctly
123
+
124
+ ## [2.2.2] - 2019-10-27
125
+ ### Fixed
126
+ - Fixed SQL_DECIMAL, SQL_REAL, and SQL_NUMERIC losing precision
127
+
128
+ ## [2.2.1] - 2019-09-13
129
+ ### Fixed
130
+ - pool.query() now closes the connections after query
131
+ - Closing queries rapidly no longer causes segfaults
132
+
133
+ ## [2.2.0] - 2019-08-28
134
+ ### Added
135
+ - Added `CHANGELONG.md`
136
+ - Added Connection function `.setIsolationLevel(level, callback?)`
137
+
138
+ ### Changed
139
+ - Refactored how parameters are stored and returned
140
+
141
+ ### Fixed
142
+ - SQL_NO_TOTAL should no longer return error on queries
143
+ - connection.close() is now more stable
144
+
145
+ ## [2.1.3] - 2019-08-16
146
+ ### Changed
147
+ - Created much more rebust DEBUG messages
148
+
149
+ ## [2.1.2] - 2019-08-08
150
+ ### Added
151
+ - Added support for `SQL_TINYINT`
152
+
153
+ ## [2.1.1] - 2019-08-05
154
+ ### Changed
155
+ - Upgraded `lodash` from version 4.17.11 to 4.17.15
156
+
157
+ ## [2.1.0] - 2019-08-02
158
+ ### Added
159
+ - Added support for JavaScript BigInt binding to `SQL_BIGINT`
160
+
161
+ ## [2.0.0-4] - 2019-06-26
162
+ ### Changed
163
+ - Removed a debug message
164
+
165
+ ## [2.0.0-3] - 2019-06-13
166
+ ### Changed
167
+ - Fixed errors in `.callProcedure()`
168
+
169
+ ## [2.0.0-2] - 2019-06-11
170
+ ### Changed
171
+ - Fixed Windows compilation issues
172
+
173
+ ## [2.0.0-1] - 2019-06-10
174
+ ### Changed
175
+ - Fixed dependency issue with `async` package
176
+
177
+ ## [2.0.0] - 2019-06-10
178
+ ### Added
179
+ - **COMPLETE REWRITE OF THE PACKAGE**
package/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ Copyright (c) 2019, 2021 IBM
2
+ Copyright (c) 2010 Lee Smith <notwink@gmail.com>
3
+
4
+ Permission is hereby granted, free of charge, to any person
5
+ obtaining a copy of this software and associated documentation
6
+ files (the "Software"), to deal in the Software without
7
+ restriction, including without limitation the rights to use,
8
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the
10
+ Software is furnished to do so, subject to the following
11
+ conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
+ OTHER DEALINGS IN THE SOFTWARE.