当前位置:网站首页>金仓数据库KingbaseES中的PL/SQL 编译检查
金仓数据库KingbaseES中的PL/SQL 编译检查
2022-06-11 10:23:00 【沉舟侧畔千帆过_】
关键字:
KingbaseES ,PL/SQL, 编译检查
1.控制参数
check_function_bodies
默认值为 true ,用于控制创建 PLSQL 对象期间是否对 PLSQL 对象进行字符串验证
plsql.compile_checks
默认值为 false, 用于控制是否进行 PLSQL 的编译检查。当需要进行当前需求新增的编译检查项时,可通过设置 plsql.compile_checks 参数为 true 来进行编译检查功能的启用。
2. 语法合规性检查
KingbaseES V8R6 的语法合规性检查是强制性的,由于存在语法错误的 PLSQL 对象,是无法在 KingbaseES V8R6 中运行的,故存在语法错误的 PLSQL 对象会在创建时报错,创建失败。
语法合规性检查只受参数 check_function_bodies 控制,即只要设置 check_function_bodies 参数值为 true。

3. 引用对象有效性检查
KingbaseES V8R6 的 PLSQL 中,创建一个引用不存在对象的 PLSQL 对象或 SQL 对象,在被引用对象被补充创建后,当前创建对象即可正常调用,所以对引用对象的有效性检查仅仅抛出 WARNING,当前 PLSQL 对象的创建仍能正常完成。后续在调用执行阶段,若被引用对象仍然不存在,则会抛出异常,若被引用对象已经补充创建完成,则可以正常调用执行。
(1)参数设置

(2)创建和调用存储过程

(3)补充缺少的引用对象

(4)再次调用存储过程

4. 数据匹配性检查
(1)数据类型匹配性检查
在 PLSQL 对象创建时 KingbaseES V8R6 会对其内部的数据类型转化关系进行检测,一旦在检测出取值对象与赋值对象之间存在数据类型无法转换的情况,那么会直接抛出 ERROR ,并终止当前 PLSQL 对象的创建。

(2)数据列数匹配性检查
为保证数据的向下兼容,数据列数的匹配性检测只抛出 WAINING ,相关的 PLSQL 对象仍能正常创建并按照原有的逻辑继续调用执行。

参考资料
《PLSQL-SQL过程语言》
边栏推荐
- Browser class for getting started with puppeter
- Use bat to write to the first line of the file
- MD5 learning
- Unity字体间距
- Dynamically render data and carousels
- 【bert】:在训练bert 语义相似的任务时,last ave state 的计算
- steamVR简介
- Explain the physical layer consistency test of 2.5g/5g/10g Base-T Ethernet interface in detail!
- 以银行异业合作为例,浅谈小程序生态的建设
- C语言课程设计
猜你喜欢

How much do you know about software compatibility testing? How to select a software compatibility testing organization?

Some code fragments of a universal and confession wall system developed by PHP

你对软件兼容性测试知道多少?如何选择软件兼容性测试机构?

What are the application fields of MAG gear pump? To sum up

How much do you know about the functions and functions of Rexroth solenoid directional valve

Tree topology networking structure of ZigBee module communication protocol

Wuenda machine learning course - week 7

What is the SOA or ASO of MOSFET?

CISP-PTE XSS基础

Picture rule page turning
随机推荐
Beginning simple blog emlog theme template V3
Global pooling – pytoch
Differences between beanfactorypostprocessor and beanpostprocessor
MySQL transaction
General idea of interface tuning
Interview review - closure
[Objective-C] dynamically create controls
Correct opening method of RPC | understand go native net/rpc package
FPGA infrastructure [reference ug998]
C+ daily exercises (15)
Some understanding of inductive bias
1. system in Library
Reprint: linearlayout+fragment to achieve the lower navigation bar effect
【高并发】关于线程池,蚂蚁金服面试官问了我这些内容!!
ZigBee模块无线传输星形拓扑组网结构简介
puppeteer入门之 BrowserFetcher 类
電子設備輻射EMC整改案例
微信小程序之点餐系统附源码
WordPress网站备份
Function and function of wandfluh proportional valve