mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Goodbye ABORT. Hello ERROR for all errors.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.12 1998/01/05 03:31:18 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.13 1998/01/07 21:02:54 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -641,7 +641,7 @@ ExecInitIndexScan(IndexScan *node, EState *estate, Plan *parent)
|
||||
|
||||
op = (Oper *) clause->oper;
|
||||
if (!IsA(op, Oper))
|
||||
elog(ABORT, "ExecInitIndexScan: op not an Oper!");
|
||||
elog(ERROR, "ExecInitIndexScan: op not an Oper!");
|
||||
|
||||
opid = op->opid;
|
||||
|
||||
@ -757,7 +757,7 @@ ExecInitIndexScan(IndexScan *node, EState *estate, Plan *parent)
|
||||
* ----------------
|
||||
*/
|
||||
if (scanvar == LEFT_OP)
|
||||
elog(ABORT, "ExecInitIndexScan: %s",
|
||||
elog(ERROR, "ExecInitIndexScan: %s",
|
||||
"both left and right op's are rel-vars");
|
||||
|
||||
/* ----------------
|
||||
@ -810,7 +810,7 @@ ExecInitIndexScan(IndexScan *node, EState *estate, Plan *parent)
|
||||
* ----------------
|
||||
*/
|
||||
if (scanvar == LEFT_OP)
|
||||
elog(ABORT, "ExecInitIndexScan: %s",
|
||||
elog(ERROR, "ExecInitIndexScan: %s",
|
||||
"both left and right ops are rel-vars");
|
||||
|
||||
varattno = 1;
|
||||
@ -836,7 +836,7 @@ ExecInitIndexScan(IndexScan *node, EState *estate, Plan *parent)
|
||||
* ----------------
|
||||
*/
|
||||
if (scanvar == NO_OP)
|
||||
elog(ABORT, "ExecInitIndexScan: %s",
|
||||
elog(ERROR, "ExecInitIndexScan: %s",
|
||||
"neither leftop nor rightop refer to scan relation");
|
||||
|
||||
/* ----------------
|
||||
|
Reference in New Issue
Block a user