Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#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