File tree Expand file tree Collapse file tree 4 files changed +1
-27
lines changed Expand file tree Collapse file tree 4 files changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -1084,9 +1084,6 @@ public void setApplicationId(int id) {
10841084 }
10851085
10861086 public enum TransactionMode implements PragmaValue {
1087- /** @deprecated Use {@code DEFERRED} instead. */
1088- @ Deprecated
1089- DEFFERED , // cspell:disable-line
10901087 DEFERRED ,
10911088 IMMEDIATE ,
10921089 EXCLUSIVE ;
@@ -1096,9 +1093,6 @@ public String getValue() {
10961093 }
10971094
10981095 public static TransactionMode getMode (String mode ) {
1099- if ("DEFFERED" .equalsIgnoreCase (mode )) { // cspell:disable-line
1100- return DEFERRED ;
1101- }
11021096 return TransactionMode .valueOf (mode .toUpperCase ());
11031097 }
11041098 }
Original file line number Diff line number Diff line change @@ -121,9 +121,6 @@ public SQLiteConfig.TransactionMode getTransactionMode() {
121121
122122 @ SuppressWarnings ("deprecation" )
123123 public void setTransactionMode (SQLiteConfig .TransactionMode transactionMode ) {
124- if (transactionMode == SQLiteConfig .TransactionMode .DEFFERED ) { // cspell:disable-line
125- transactionMode = SQLiteConfig .TransactionMode .DEFERRED ;
126- }
127124 this .transactionMode = transactionMode ;
128125 }
129126
Original file line number Diff line number Diff line change @@ -57,9 +57,7 @@ public void tryEnforceTransactionMode() throws SQLException {
5757 // (note: this pragma is evaluated on a per-transaction basis by SQLite)
5858 getDatabase ()._exec ("PRAGMA query_only = true;" );
5959 } else {
60- if (getCurrentTransactionMode () == TransactionMode .DEFERRED
61- || this .getCurrentTransactionMode ()
62- == TransactionMode .DEFFERED ) { // cspell:disable-line
60+ if (getCurrentTransactionMode () == TransactionMode .DEFERRED ) {
6361 if (isFirstStatementExecuted ()) {
6462 // first statement was already executed; cannot upgrade to write
6563 // transaction!
Original file line number Diff line number Diff line change @@ -355,21 +355,6 @@ public void transactionModes(@TempDir File tempDir) throws Exception {
355355 assertThat (con .getConnectionConfig ().transactionPrefix ()).isEqualTo ("begin;" );
356356 }
357357
358- // Misspelled deferred should be accepted for backwards compatibility
359- ds .setTransactionMode ("DEFFERED" );
360- try (SQLiteConnection con = (SQLiteConnection ) ds .getConnection ()) {
361- assertThat (con .getConnectionConfig ().getTransactionMode ())
362- .isEqualTo (TransactionMode .DEFERRED );
363- assertThat (con .getConnectionConfig ().transactionPrefix ()).isEqualTo ("begin;" );
364- }
365-
366- try (SQLiteConnection con = (SQLiteConnection ) ds .getConnection ()) {
367- con .getConnectionConfig ().setTransactionMode (TransactionMode .valueOf ("DEFFERED" ));
368- assertThat (con .getConnectionConfig ().getTransactionMode ())
369- .isEqualTo (TransactionMode .DEFERRED );
370- assertThat (con .getConnectionConfig ().transactionPrefix ()).isEqualTo ("begin;" );
371- }
372-
373358 // immediate
374359 ds .setTransactionMode (TransactionMode .IMMEDIATE .name ());
375360 try (SQLiteConnection con = (SQLiteConnection ) ds .getConnection ()) {
You can’t perform that action at this time.
0 commit comments