Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Broken updateSQL functionality

$
0
0

Generate SQL fails on 3.0.8/3.1.1 when the database is created from scratch(applying all changes on empty database). 

It works well on 3.0.3. 

Command : liquibase --logLevel=info  --changeLogFile="changelog/changelog-master.xml" updateSQL

Trace:

INFO 1/30/14 11:21 AM:liquibase: Shutting down derby connection: jdbc:derby:/home/rraj/workspace/xyz;shutdown=true
Liquibase updateSQL Failed: liquibase.exception.DatabaseException: Error executing SQL select min(locked) as test from APP.DATABASECHANGELOGLOCK fetch first row only: Table/View 'APP.DATABASECHANGELOGLOCK' does not exist.
SEVERE 1/30/14 11:21 AM:liquibase: liquibase.exception.DatabaseException: Error executing SQL select min(locked) as test from APP.DATABASECHANGELOGLOCK fetch first row only: Table/View 'APP.DATABASECHANGELOGLOCK' does not exist.
liquibase.exception.LockException: liquibase.exception.DatabaseException: Error executing SQL select min(locked) as test from APP.DATABASECHANGELOGLOCK fetch first row only: Table/View 'APP.DATABASECHANGELOGLOCK' does not exist.
at liquibase.lockservice.StandardLockService.acquireLock(StandardLockService.java:209)
at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:148)
at liquibase.Liquibase.update(Liquibase.java:249)
at liquibase.Liquibase.update(Liquibase.java:236)
at liquibase.integration.commandline.Main.doMigration(Main.java:894)
at liquibase.integration.commandline.Main.main(Main.java:133)
Caused by: liquibase.exception.DatabaseException: Error executing SQL select min(locked) as test from APP.DATABASECHANGELOGLOCK fetch first row only: Table/View 'APP.DATABASECHANGELOGLOCK' does not exist.
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:61)
at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:119)
at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:127)
at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:135)
at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:146)
at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:141)
at liquibase.executor.LoggingExecutor.queryForObject(LoggingExecutor.java:118)
at liquibase.lockservice.StandardLockService.init(StandardLockService.java:98)
at liquibase.lockservice.StandardLockService.acquireLock(StandardLockService.java:182)
... 5 more
Caused by: java.sql.SQLSyntaxErrorException: Table/View 'APP.DATABASECHANGELOGLOCK' does not exist.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeQuery(Unknown Source)
at liquibase.executor.jvm.JdbcExecutor$QueryStatementCallback.doInStatement(JdbcExecutor.java:332)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:54)
... 13 more
Caused by: java.sql.SQLException: Table/View 'APP.DATABASECHANGELOGLOCK' does not exist.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 23 more
Caused by: ERROR 42X05: Table/View 'APP.DATABASECHANGELOGLOCK' does not exist.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDescriptor(Unknown Source)
at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITables(Unknown Source)
at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknown Source)
at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITables(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTables(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
at org.apache.derby.impl.sql.compile.CursorNode.bindStatement(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
... 17 more


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>