"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hsqldb/src/org/hsqldb/persist/ScriptRunner.java" between
hsqldb-2.7.1.zip and hsqldb-2.7.2.zip

About: HSQLDB (HyperSQL DataBase) is a SQL relational database engine written in Java. It supports nearly full ANSI-92 SQL (BNF format) and full core SQL:2008.

ScriptRunner.java  (hsqldb-2.7.1):ScriptRunner.java  (hsqldb-2.7.2)
/* Copyright (c) 2001-2022, The HSQL Development Group /* Copyright (c) 2001-2023, The HSQL Development Group
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* *
* Redistributions of source code must retain the above copyright notice, this * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer. * list of conditions and the following disclaimer.
* *
* Redistributions in binary form must reproduce the above copyright notice, * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation * this list of conditions and the following disclaimer in the documentation
skipping to change at line 61 skipping to change at line 61
import org.hsqldb.scriptio.ScriptReaderText; import org.hsqldb.scriptio.ScriptReaderText;
import org.hsqldb.scriptio.StatementLineTypes; import org.hsqldb.scriptio.StatementLineTypes;
/** /**
* Restores the state of a Database instance from an SQL log file. <p> * Restores the state of a Database instance from an SQL log file. <p>
* *
* If there is an error, processing stops at that line and the message is * If there is an error, processing stops at that line and the message is
* logged to the application log. If memory runs out, an exception is thrown. * logged to the application log. If memory runs out, an exception is thrown.
* *
* @author Fred Toussi (fredt@users dot sourceforge.net) * @author Fred Toussi (fredt@users dot sourceforge.net)
* @version 2.7.0 * @version 2.7.2
* @since 1.7.2 * @since 1.7.2
*/ */
public class ScriptRunner { public class ScriptRunner {
/** /**
* This is used to read the *.log file and manage any necessary * This is used to read the *.log file and manage any necessary
* transaction rollback. * transaction rollback.
*/ */
public static void runScript(Database database, String logFilename, public static void runScript(Database database, String logFilename,
boolean fullReplay) { boolean fullReplay) {
skipping to change at line 175 skipping to change at line 175
throw Error.error(result); throw Error.error(result);
} }
break; break;
case StatementLineTypes.COMMIT_STATEMENT : case StatementLineTypes.COMMIT_STATEMENT :
current.commit(false); current.commit(false);
break; break;
case StatementLineTypes.INSERT_STATEMENT : { case StatementLineTypes.INSERT_STATEMENT : {
current.sessionContext.currentStatement = dummy; current.sessionContext.currentStatement = dummy;
current.sessionContext.invalidStatement = false;
current.beginAction(dummy); current.beginAction(dummy);
Object[] data = scr.getData(); Object[] data = scr.getData();
scr.getCurrentTable().insertNoCheckFromLog(current, scr.getCurrentTable().insertNoCheckFromLog(current,
data); data);
current.endAction(Result.updateOneResult); current.endAction(Result.updateOneResult);
break; break;
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)