Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.UnsupportedSQLException


    }

    @Override
    protected void doEvaluate(TExecutionContext context, LazyList<? extends ValueSource> inputs, ValueTarget output)
    {
            throw new UnsupportedSQLException("This query is not supported, its definition " +
                                              "is used solely for optimization purposes.");
    }
View Full Code Here


                throw new UnsupportedOperationException();
            if (sqlStmt instanceof DDLStatementNode)
                return new ExecutableDDLStatement((DDLStatementNode)sqlStmt, sql);
            if (sqlStmt instanceof CallStatementNode)
                return ExecutableCallStatement.executableStatement((CallStatementNode)sqlStmt, parser.getParameterList(), context);
            throw new UnsupportedSQLException("Statement not recognized", sqlStmt);
        }
        finally {
            sessionMonitor.leaveStage();
            if (localTransaction)
                rollbackTransaction();
View Full Code Here

            Explainable explainable;
            if ((sqlStmt instanceof DMLStatementNode) &&
                !(sqlStmt instanceof CallStatementNode))
                explainable = compiler.compile((DMLStatementNode)sqlStmt, parser.getParameterList(), context).getPlannable();
            else
                throw new UnsupportedSQLException("Statement not supported for EXPLAIN", sqlStmt);
            return explainable.getExplainer(context.getExplainContext());
        }
        finally {
            sessionMonitor.leaveStage();
            if (localTransaction)
View Full Code Here

                                              cursorNode.getOrderByList(),
                                              cursorNode.getOffsetClause(),
                                              cursorNode.getFetchFirstClause(),
                                              true);
            if (cursorNode.getUpdateMode() == CursorNode.UpdateMode.UPDATE)
                throw new UnsupportedSQLException("FOR UPDATE", cursorNode);
            return new SelectQuery(query, peekEquivalenceFinder());
        }
View Full Code Here

            }
            else if (resultSet instanceof UnionNode || resultSet instanceof IntersectOrExceptNode) {
                return newSetOperation(resultSet, orderByList, offsetClause, fetchFirstClause);
            }
            else
                throw new UnsupportedSQLException("Unsupported query", resultSet);
        }
View Full Code Here

                                                     invocation.getRoutineName());
        JDBCResultSetMetaData resultSetMetaData = resultSetMetaData(plan, context);
        if (plan instanceof LoadableOperator)
            return new ExecutableLoadableOperator((LoadableOperator)plan, invocation,
                                                  resultSetMetaData, parameterMetaData);
        throw new UnsupportedSQLException("Unsupported loadable plan", call);
    }
View Full Code Here

            return ExecutableScriptFunctionJavaRoutine.executableStatement(invocation, parameterMetaData, context);
        case SCRIPT_BINDINGS:
        case SCRIPT_BINDINGS_JSON:
            return ExecutableScriptBindingsRoutine.executableStatement(invocation, parameterMetaData, context);
        default:
            throw new UnsupportedSQLException("Unknown routine", call);
        }
    }
View Full Code Here

                SELECT_COUNT.hit();
                return selectQuery((SelectQuery)plan);
            } else if (plan instanceof DMLStatement) {
                return dmlStatement ((DMLStatement)plan);
            } else
                throw new UnsupportedSQLException("Cannot assemble plan: " + plan, null);
        }
View Full Code Here

                    case EXCEPT:
                        return assembleExcept(setPlan);
                    case UNION:
                        return assembleUnion(setPlan);
                    default:
                        throw new UnsupportedSQLException("Set operation node without type " + node, null);
                }
            }
            else
                throw new UnsupportedSQLException("Plan node " + node, null);
        }
View Full Code Here

            if (index instanceof SingleIndexScan)
                return assembleSingleIndexScan((SingleIndexScan) index, forIntersection);
            else if (index instanceof MultiIndexIntersectScan)
                return assembleIndexIntersection((MultiIndexIntersectScan) index, forIntersection, useSkipScan);
            else
                throw new UnsupportedSQLException("Plan node " + index, null);
        }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.UnsupportedSQLException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.