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

时间:2018-05-21 14:08:09

标签: php mysql phpmyadmin sql-update syntax-error

因为我尝试在mysql上运行更新请求以更新文章的目标mysql显示错误,请求超出了最大长度,错误是“此查询已禁用linting,因为它超出了最大长度”

1 个答案:

答案 0 :(得分:0)

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',
            )
        );
    }