Skip to content

Commit 7a4191d

Browse files
authored
Merge pull request #13 from oracle/master
Merge upstream changes
2 parents db5950f + f03bff4 commit 7a4191d

File tree

120 files changed

+10302
-4052
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+10302
-4052
lines changed

.github/issue_template.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
*Delete irrelevant parts of this template.*
2+
3+
### For general questions:
4+
5+
Describe exactly what you did and what you want to happen.
6+
Use the questions at the bottom of this template as a guide.
7+
8+
Use Markdown syntax, particularly for code blocks: see https://help.github.com/articles/basic-writing-and-formatting-syntax/
9+
10+
### For installation issues:
11+
12+
Use a gist for screen output and logs: see https://gist.github.com/
13+
**Do not paste long output into this issue**
14+
15+
Review the install instructions at https://github.com/oracle/node-oracledb/blob/master/INSTALL.md
16+
17+
Review your output and logs. **Google any errors**
18+
Try to install in a different way. Try some potential solutions.
19+
20+
#### Answer the following questions:
21+
22+
1. What error(s) you are seeing?
23+
24+
2. What *exact* command caused the problem (e.g. what command did you try to install with)? Who were you logged in as?
25+
26+
3. What environment variables did you set? How *exactly* did you set them?
27+
28+
4. What is your version of Node.js?
29+
30+
5. What is your version of the Oracle client (e.g. Instant Client)? How was it installed? Where it is installed?
31+
32+
6. What is your OS and version?
33+
34+
7. What compiler version did you use?

.github/pull_request_template.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Thanks for contributing!
2+
3+
Before submitting PRs for node-oracledb you must have your signed *Oracle Contributor Agreement* accepted. See https://www.oracle.com/technetwork/community/oca-486395.html
4+
5+
If the problem solved is small, you may find it easier to open an Issue describing the problem and its cause so we can create the fix.
6+
7+
The bottom of your commit message must have the following line using your name and e-mail address as it appears in the OCA Signatories list.
8+
9+
```
10+
Signed-off-by: Your Name <[email protected]>
11+
```
12+
13+
This can be automatically added to pull requests by committing with:
14+
15+
```
16+
git commit --signoff
17+
````

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ sqlnet.log
1919
sqlnet.ora
2020
tnsnames.ora
2121
oraaccess.xml
22+
instantclient
23+
instantclient_11_2
24+
instantclient_12_1

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
.editorconfig
12
INSTALL.md
23
CONTRIBUTING.md
34
/doc
45
/examples
6+
/test
57
/build
68
/node_modules
79
/oracle_private_test
10+
/.github
811
oracledb-*.tgz
912
.npmignore

CHANGELOG.md

+123-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,127 @@
11
# Change Log
22

3+
## node-oracledb v1.10.1 (21 Jul 2016)
4+
5+
- Fixed a bug that prevented a null value being passed from JavaScript into an IN OUT bind.
6+
7+
- Fixed a memory leak introduced in 1.10 with REF CURSORs.
8+
9+
- Fixed a memory leak in error handling paths when using REF CURSORs.
10+
11+
- Made an internal change for queries selecting unsupported column types allowing them to report an error earlier.
12+
13+
- Made an internal change to use std::string& for string lengths.
14+
15+
- Fixed a compilation warning on Windows.
16+
17+
- Added a mocha configuration file for the test suite.
18+
19+
## node-oracledb v1.10.0 (8 Jul 2016)
20+
21+
- Enhanced query and REF CURSOR metadata is available when a new
22+
`oracledb.extendedMetaData` or `execute()` option `extendedMetaData`
23+
property is `true`. (Leonardo Olmi).
24+
25+
- Fixed an issue preventing the garbage collector cleaning up when a
26+
query with LOBs is executed but LOB data isn't actually streamed.
27+
28+
- Fixed a bug where an error event could have been emitted on a
29+
QueryStream instance prior to the underlying ResultSet having been
30+
closed. This would cause problems if the user tried to close the
31+
connection in the error event handler as the ResultSet could have
32+
prevented it.
33+
34+
- Fixed a bug where the public `close()` method was invoked on the
35+
ResultSet instance that underlies the QueryStream instance if an
36+
error occurred during a call to `getRows()`. The public method would
37+
have thrown an error had the QueryStream instance been created from
38+
a ResultSet instance via the `toQueryStream()` method. Now the
39+
underlying C++ layer's `close()` method is invoked directly.
40+
41+
- Updated `Pool._logStats()` to throw an error instead of printing to
42+
the console if the pool is not valid.
43+
44+
- Report an error earlier when a named bind object is used in a
45+
bind-by-position context. A new error NJS-044 is returned.
46+
Previously errors like ORA-06502 were given.
47+
48+
- Added GitHub Issue and Pull Request templates.
49+
50+
- Some enhancements were made to the underlying DPI data access layer.
51+
**These are not exposed to node-oracledb users.**
52+
53+
- Allow <code>SYSDBA</code> connections
54+
- Allow session tagging
55+
- Allow the character set and national character set to be specified via parameters to the DPI layer.
56+
- Support heterogeneous pools (in addition to existing homogeneous pools)
57+
58+
## node-oracledb v1.9.3 (24 May 2016)
59+
60+
- Fix error with `OCI_ERROR_MAXMSG_SIZE2` when building with Oracle client 11.2.0.1 and 11.2.0.2.
61+
62+
## node-oracledb v1.9.2 (23 May 2016)
63+
64+
- Fix `results.metaData` for queries with `{resultSet: true}`.
65+
66+
## node-oracledb v1.9.1 (18 May 2016)
67+
68+
- Upgraded to NAN 2.3 for Node 6 support.
69+
70+
- Added a persistent reference to JavaScript objects during Async
71+
operations to prevent crashes due to premature garbage collection.
72+
73+
- Added a persistent reference to the internal Lob buffer to prevent
74+
premature garbage collection.
75+
76+
- Fixed memory leaks when using ResultSets.
77+
78+
- Fixed memory leak with the Pool queue timer map.
79+
80+
- Fixed memory release logic when querying LOBs and an error occurs.
81+
82+
- Improved some null pointer checking.
83+
84+
- Altered some node-oracledb NJS-xyz error message text for consistency.
85+
86+
- Improved validation for `fetchInfo` usage.
87+
88+
- Increased the internal buffer size for Oracle Database error messages.
89+
90+
- Call `pause()` internally when closing a query Stream with `_close()`.
91+
92+
- Fixed a symbol redefinition warning for `DATA_BLOB` when compiling on Windows.
93+
94+
- The test suite is no longer installed with `npm install oracledb`.
95+
The tests remain available in GitHub.
96+
97+
## node-oracledb v1.9.0 Development (19 Apr 2016)
98+
99+
- Added Promise support. All asynchronous functions can now return
100+
promises. By default the standard Promise library is used for Node
101+
0.12, 4 and 5. This can be overridden.
102+
103+
- Added a `toQueryStream()` method for ResultSets, letting REF CURSORS
104+
be transformed into Readable Streams.
105+
106+
- Added an experimental query Stream `_close()` method. It allows query
107+
streams to be closed without needing to fetch all the data. It is
108+
not for production use.
109+
110+
- Added aliases `pool.close()` and `connection.close()` for
111+
`pool.terminate()` and `connection.release()` respectively.
112+
113+
- Some method parameter validation checks, such as the number or types
114+
of parameters, will now throw errors synchronously instead of
115+
returning errors via the callback.
116+
117+
- Removed an extra call to `getRows()` made by `queryStream()` at
118+
end-of-fetch.
119+
120+
- Some random crashes caused by connections being garbage collected
121+
while still in use should no longer occur.
122+
123+
- Regularized NJS error message capitalization.
124+
3125
## node-oracledb v1.8.0 (24 Mar 2016)
4126

5127
- Added `connection.queryStream()` for returning query results using a
@@ -26,7 +148,7 @@
26148

27149
## node-oracledb v1.7.1 (1 Mar 2016)
28150

29-
- Made public methods overwritable in new JavaScript layer
151+
- Made public methods over-writable in the new JavaScript layer
30152

31153
## node-oracledb v1.7.0 (29 Feb 2016)
32154

0 commit comments

Comments
 (0)