dynamobi/dynamobi — Issue #538: [FRG-334] attempting to insert into a foreign table gives a bad error message
Author: dynamobi-build
Created: 2011-12-30 03:34:09+00:00
State: open
Labels: FRG, Sql2Rel

[reporter="jvs", created="Tue, 19 Aug 2008 15:57:30 -0500 (GMT-05:00)"]
0: jdbc:farrago:> insert into hsqldb_demo.sales.dept values (40, 'Netops', null);

Error: java.lang.NullPointerException: null (state=,code=0)

net.sf.farrago.jdbc.FarragoJdbcUtil$FarragoSqlException: java.lang.NullPointerException: null

at net.sf.farrago.query.ReposDefaultValueFactory.isGeneratedAlways(ReposDefaultValueFactory.java:95)

at org.eigenbase.sql2rel.SqlToRelConverter.convertColumnList(SqlToRelConverter.java:2664)

at org.eigenbase.sql2rel.SqlToRelConverter.convertInsert(SqlToRelConverter.java:2595)

at org.eigenbase.sql2rel.SqlToRelConverter.convertQueryRecursive(SqlToRelConverter.java:2528)

at org.eigenbase.sql2rel.SqlToRelConverter.convertQuery(SqlToRelConverter.java:404)

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

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

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

at net.sf.farrago.util.FarragoObjectCache.tryPin(FarragoObjectCache.java:187)

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

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

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

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

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

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

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

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)