<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Messages posted by "alexei"]]></title>
		<link>http://forums.terracotta.org/forums/posts/listByUser/5839.page</link>
		<description><![CDATA[Messages posted by "alexei"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Re:HSQLDB - SQLException: Unexpected token , requires FROM in statement [select 0]</title>
				<description><![CDATA[ OK, thanks. It's work!]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/preList/6433/32553.page#32553</guid>
				<link>http://forums.terracotta.org/forums/posts/preList/6433/32553.page#32553</link>
				<pubDate><![CDATA[Mon, 19 Dec 2011 23:28:53]]> GMT</pubDate>
				<author><![CDATA[ alexei]]></author>
			</item>
			<item>
				<title>HSQLDB - SQLException: Unexpected token , requires FROM in statement [select 0]</title>
				<description><![CDATA[ I'm using quartz 2.1, java 1.6 and MySQL.
my quartz.properties for MySQL (piece)
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.useProperties=false
org.quartz.jobStore.dataSource=myDS
org.quartz.jobStore.tablePrefix=QRTZ_
org.quartz.jobStore.isClustered=false

#============================================================================
# Configure Datasources  
#============================================================================

org.quartz.dataSource.myDS.driver=org.gjt.mm.mysql.Driver
org.quartz.dataSource.myDS.URL=jdbc:mysql://myIP:3306/myProj
org.quartz.dataSource.myDS.user=myUser
org.quartz.dataSource.myDS.password=myPass
org.quartz.dataSource.myDS.maxConnections=5
org.quartz.dataSource.myDS.validationQuery=select 0
</pre>
		</div>

and it's work fine!
But I want to switch DB from MySQL to HSQLDB.

Here quartz.properties (piece) for HSQLDB:
<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.HSQLDBDelegate
org.quartz.jobStore.useProperties=false
org.quartz.jobStore.dataSource=myDS
org.quartz.jobStore.tablePrefix=QRTZ_
org.quartz.jobStore.isClustered=false

#============================================================================
# Configure Datasources  
#============================================================================

org.quartz.dataSource.myDS.driver=org.hsqldb.jdbcDriver
org.quartz.dataSource.myDS.URL=jdbc:hsqldb:file:d:/db/myProj
org.quartz.dataSource.myDS.user=SA
org.quartz.dataSource.myDS.password=
org.quartz.dataSource.myDS.maxConnections=5
org.quartz.dataSource.myDS.validationQuery=select 0
</pre>
		</div>

When I start application I get the next error:

<span class="genmed"><b>Code:</b></span><br>
		<div>
		<pre bbCodeId="pre-code" style="overflow: auto; width: 95%; max-height: 350px; height:expression(this.scrollHeight > 350 ? '350px' : 'auto');">
DEBUG: 18.12.2011 16:10:31.270 com.mchange.v2.c3p0.impl.NewPooledConnection.handleThrowable&#40;NewPooledConnection.java:367&#41; 
    com.mchange.v2.c3p0.impl.NewPooledConnection@12fb063 handling a throwable.
java.sql.SQLException: Unexpected token , requires FROM in statement &#91;select 0&#93;
	at org.hsqldb.jdbc.Util.sqlException&#40;Unknown Source&#41;
	at org.hsqldb.jdbc.jdbcStatement.fetchResult&#40;Unknown Source&#41;
	at org.hsqldb.jdbc.jdbcStatement.executeQuery&#40;Unknown Source&#41;
	at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery&#40;NewProxyStatement.java:35&#41;
	at com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnection&#40;DefaultConnectionTester.java:73&#41;
	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.testPooledConnection&#40;C3P0PooledConnectionPool.java:374&#41;
	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.finerLoggingTestPooledConnection&#40;C3P0PooledConnectionPool.java:318&#41;
	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.refurbishResourceOnCheckin&#40;C3P0PooledConnectionPool.java:299&#41;
	at com.mchange.v2.resourcepool.BasicResourcePool.attemptRefurbishResourceOnCheckin&#40;BasicResourcePool.java:1606&#41;
	at com.mchange.v2.resourcepool.BasicResourcePool.access$200&#40;BasicResourcePool.java:32&#41;
	at com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask.run&#40;BasicResourcePool.java:1228&#41;
	at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run&#40;ThreadPoolAsynchronousRunner.java:547&#41;
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forums.terracotta.org/forums/posts/preList/6433/32531.page#32531</guid>
				<link>http://forums.terracotta.org/forums/posts/preList/6433/32531.page#32531</link>
				<pubDate><![CDATA[Sun, 18 Dec 2011 06:38:21]]> GMT</pubDate>
				<author><![CDATA[ alexei]]></author>
			</item>
	</channel>
</rss>