From: SVN by r. <sv...@ca...> - 2009-12-08 10:14:39
|
Author: roy Date: 2009-12-08 11:14:25 +0100 (Tue, 08 Dec 2009) New Revision: 430 Modified: src/main/java/nl/improved/sqlclient/commands/SettingsCommand.java Log: set autocommit on/off Modified: src/main/java/nl/improved/sqlclient/commands/SettingsCommand.java =================================================================== --- src/main/java/nl/improved/sqlclient/commands/SettingsCommand.java 2009-12-08 09:46:14 UTC (rev 429) +++ src/main/java/nl/improved/sqlclient/commands/SettingsCommand.java 2009-12-08 10:14:25 UTC (rev 430) @@ -34,6 +34,7 @@ //ResultBuilder.setVerticalSeparator(cmdString.charAt(cmdString.indexOf('=')+1)); char readAutoCommit = cmdString.charAt(cmdString.indexOf('=')+1); if (readAutoCommit == 'Y' || readAutoCommit == 'N') { + ReadCommand.setAutoCommit(readAutoCommit == 'Y'); return new SimpleCommandResult(true, "Auto commit for the read command is set to '"+ResultBuilder.getVerticalSeparator()+"'."); } else { return new SimpleCommandResult(false, "Auto commit for the read command can only be set to 'Y' or 'N' (value: " + readAutoCommit+")"); |