gpt4 book ai didi

sql - 使用 dbms_assert.noop

转载 作者:行者123 更新时间:2023-12-04 03:39:06 26 4
gpt4 key购买 nike

dbms_assert.noop 的实际用途是什么?由于此函数不执行错误检查并返回输入的字符串。

最佳答案

阅读here在 Pete Finnigan 的博客上,他讨论了 dbms_assert.noop 函数。它提到:

This (dbms_assery.noop), we can now clarify is used to mark a piece of code that is not to be tested by automated test tools (presumably Fortify) as this function does nothing except return the string passed unchanged.

据我所知,我可以在通过变量传递实际代码段的情况下使用此函数,并且我不希望检查它是否存在 SQL 注入(inject)攻击。

这是此功能的众多用途之一。

关于sql - 使用 dbms_assert.noop,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15610791/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com