After some additional test for #476 and more checking with the source code I found out that I make a mistake in the grammar. The MySQL/Postgres and the Derby/Oracle syntax should be different productions.