dynamobi/dynamobi — Issue #726: [FRG-145]  "values applib.convert_date('03*/12*/1998', 'MM*/DD*/YYYY');" breaks Java code gen
Author: dynamobi-build
Created: 2011-12-30 03:45:26+00:00
State: open
Labels: FRG, Statement Processing

[reporter="kvu", created="Tue, 6 Jun 2006 15:20:20 -0500 (GMT-05:00)"]
-- this line breaks Java code gen because */ looks like the end of a Javadoc comment

-- values applib.convert_date('03*/12*/1998', 'MM*/DD*/YYYY');

0: jdbc:luciddb:> values applib.convert_date('03*/12*/1998', 'MM*/DD*/YYYY');

Error: org.codehaus.janino.util.TunnelException: org.codehaus.janino.util.TunnelException: File /home/kvu/open/luciddb/./classes/net/sf/farrago/dynamic/stmt1290/ExecutableStmt.java, Line 5, Column 84: Unexpected token "12" in class or interface declaration (state=,code=0)

net.sf.farrago.jdbc.FarragoJdbcUtil$FarragoSqlException: org.codehaus.janino.util.TunnelException: org.codehaus.janino.util.TunnelException: File /home/kvu/open/luciddb/./classes/net/sf/farrago/dynamic/stmt1290/ExecutableStmt.java, Line 5, Column 84: Unexpected token "12" in class or interface declaration

at org.codehaus.janino.JavaSourceIClassLoader.findIClass(Unknown Source)

at org.codehaus.janino.IClassLoader.loadIClass(Unknown Source)

at org.codehaus.janino.JavaSourceClassLoader.findClassFile(Unknown Source)

at org.codehaus.janino.JavaSourceClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

at org.eigenbase.javac.JaninoCompiler.compile(JaninoCompiler.java:85)

at org.eigenbase.oj.stmt.OJPreparingStmt.compileClass(OJPreparingStmt.java:639)

at org.eigenbase.oj.stmt.OJPreparingStmt.compile(OJPreparingStmt.java:561)

at org.eigenbase.oj.stmt.OJPreparingStmt.compile(OJPreparingStmt.java:549)

at org.eigenbase.oj.stmt.OJPreparingStmt.compileAndBind(OJPreparingStmt.java:118)

at net.sf.farrago.query.FarragoPreparingStmt.compileAndBind(FarragoPreparingStmt.java:404)

at org.eigenbase.oj.stmt.OJPreparingStmt.implement(OJPreparingStmt.java:329)

at org.eigenbase.oj.stmt.OJPreparingStmt.prepareSql(OJPreparingStmt.java:266)

at net.sf.farrago.query.FarragoPreparingStmt.prepare(FarragoPreparingStmt.java:262)

at net.sf.farrago.db.FarragoDatabase$2.initializeEntry(FarragoDatabase.java:784)

at net.sf.farrago.util.FarragoObjectCache.pin(FarragoObjectCache.java:157)

at net.sf.farrago.db.FarragoDatabase.prepareStmtImpl(FarragoDatabase.java:794)

at net.sf.farrago.db.FarragoDatabase.prepareStmt(FarragoDatabase.java:674)

at net.sf.farrago.db.FarragoDbSession.prepareImpl(FarragoDbSession.java:874)

at net.sf.farrago.db.FarragoDbSession.prepare(FarragoDbSession.java:816)

at net.sf.farrago.db.FarragoDbStmtContext.prepare(FarragoDbStmtContext.java:108)

at net.sf.farrago.jdbc.engine.FarragoJdbcEngineStatement.execute(FarragoJdbcEngineStatement.java:105)

at sqlline.SqlLine$Commands.execute(Unknown Source)

at sqlline.SqlLine$Commands.sql(Unknown Source)

at sqlline.SqlLine.dispatch(Unknown Source)

at sqlline.SqlLine.begin(Unknown Source)

at sqlline.SqlLine.mainWithInputRedirection(Unknown Source)

at sqlline.SqlLine.main(Unknown Source)