#include "dbms_warning.hpp"
|
#include "dbms_warning_errors.hpp"
|
|
extern "C"
|
{
|
#include "utils/elog.h"
|
} // extern "C"
|
|
namespace dbms_warning_errors
|
{
|
void raise_ora_01031()
|
{
|
ereport(ERROR,
|
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
|
errmsg("ORA-01031: insufficient privileges")));
|
}
|
|
void raise_ora_01405()
|
{
|
ereport(ERROR,
|
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
|
errmsg("ORA-01405: the fetched column returned a NULL value")));
|
}
|
|
void raise_ora_39950()
|
{
|
ereport(ERROR,
|
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
errmsg("ORA-39950: invalid parameter for PLSQL warnings flag")));
|
}
|
|
void raise_ora_39960()
|
{
|
ereport(ERROR,
|
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
errmsg("ORA-39960: scope can only be SYSTEM or SESSION")));
|
}
|
} // namespace dbms_warning_errors
|