/
RELEASE_NOTES
151 lines (101 loc) · 4.51 KB
/
RELEASE_NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
1.4.5
Fix bug in caching added in 1.4.4
Optimize statement literal or named statement detection
1.4.4
Allow for create/drop/alter statements
Cache whether or not a driver supports asking for prepared statement parameter types
1.4.3
Handle drivers (such as Oracle) which throw an exception when trying to retrieve
prepared statement parameter type information.
1.4.2
Be explicit about target jdk version (1.4) for this branch
1.4.1
Fixed bug where null is being set via setObject instead of setNull
Thank you, Simone Gianni!
1.4.0
Expose the new functionality on interfaces as well as concrete classes
1.3.3
Expose the handle decorator functionality on the IDBI interface
Add a script locator mechanism analogous to the statement locator
1.3.2
Save SQLException to provide more information to the DBIException on
statement execution
1.3.1
Issue with a matcher not being reset which only showed up under jdk 1.5. Thank you Patrick!
1.3.0
Wrap exceptions thrown from handle in Spring DataAccessExceptions for the
Spring adaptor. Thank you Thomas Risberg.
Support for "global" named parameters at the handle and DBI levels
1.2.5
Change Handle#script to batch the statements in the script
1.2.4
Bug fix in named parameter handling with quotes (would ignore some named params incorrectly)
1.2.3
Allow configuring transaction handlers in properties
Allow configuring of externalized sql locating (ie, non-classpath)
1.2.2
Add callback based transaction handling in order to cleanly support the various
transactional contexts (CMT, BMT, Spring, Local) etc.
1.2.1
Via the Spring DBIBean, IDBI#open(HandleCallback) now uses the transactionally bound handle
if there is one.
1.2.0
DBIException now extends RuntimeException. The 7 character change major release =)
Added DBIUtils.closeHandleIfNecessary(Handle, IDBI) to allow for transparently managing
transactions and connections in Spring whteher tx's are enabled or not.
1.1.2
Handle#query(String, RowCallback): void no longer starts a transaction
automagically
1.1.1
Support full-line comments in external sql and sql scripts. Full line comments
must begin with # or // or -- as the first character(s) on the line.
1.1.0
Added handle#first(..): Map convenience functions to query for individual rows
Removed DBITransactionFailedException and used plain old DBIException
in its place
Added unstable package for holding elements subject to API changes
during a major release cycle.
Handle decorator functionality added to unstable feature set
JavaBean mapped named parameter support
Renamed Handle#preparedBatch to Handle#prepareBatch
Queries return java.util.List instead of java.util.Collection
Much more sophisticated auto-configuration
Broke backwards compatibility on handle.query(String, Object) method behavior
(this is reason why 1.1.0 version increment)
(read the javadocs if you use this method)
Removed method Handle#query(String, Object, Object)
Could lea to confusion with changed behavior mentioned above
1.0.10
Batch and PreparedBatch Support
Removed an unused exception
Fixed bug in named parameter extractor (would miss named params not preceeded by whitespace)
1.0.9
Better auto-detection of statement type (named, raw sql, etc)
1.0.8
Spring integration tools
1.0.7
Provide an interface for the DBI class in order to play nicer with proxies
1.0.6
Prepared statement re-use was failing on Oracle, fixed.
1.0.5
Fleshed out the execute(..) methods to take full array of arguments, like
query.
Added update(..): int which return number of rows affected
Lots of internal refactoring
1.0.4
Was swallowing an exception in one place for the (brief) 1.0.3 release.
Definately upgrade if using 1.0.3
1.0.3
Fixed a bug where quoted text could be interpreted as named tokens, bad me.
Added HandleCallback methods to DBI to manage handle db resources etc for
clients.
Removed test dependency on Jakarta commons-io, which had been used, previously,
for deleting the test database. Tests now depend only on derby and junit, still
with no runtime dependencies (other than the JDBC driver for your database).
1.0.2
Added facility for loading connection info from properties file
for convenience. Totally optional, thankfully.
1.0.1
Added overloaded argument signatures to callback-based queries
1.0
Initial Release