mysql在尝试运行更新请求后显示错误

vh0rcniy  于 2021-06-20  发布在  Mysql
关注(0)|答案(1)|浏览(369)

当我试图在mysql上运行更新请求来更新一篇文章时,mysql显示了一个错误,请求超过了最大长度,错误是“linting对于这个查询是禁用的,因为它超过了最大长度”

pb3skfrl

pb3skfrl1#

phpmyadmin的源代码揭示了消息文本的来源。。。
https://github.com/phpmyadmin/phpmyadmin/blob/master/libraries/classes/linter.php

/**
 * Runs the linting process.
 *
 * @param string $query The query to be checked.
 *
 * @return array
 */
public static function lint($query)
{
    // Disabling lint for huge queries to save some resources.
    if (/*overload*/mb_strlen($query) > 10000) {
        return array(
            array(
                'message' => __(
                    'Linting is disabled for this query because it exceeds the '
                    . 'maximum length.'
                ),
                'fromLine' => 0,
                'fromColumn' => 0,
                'toLine' => 0,
                'toColumn' => 0,
                'severity' => 'warning',
            )
        );
    }

相关问题