Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local.ERROR: PDOException: SQLSTATE[HY000]: General error: 1105 line 87 column 38 near " rollup^M #6906

Closed
mawenbin666 opened this issue Jun 26, 2018 · 4 comments
Labels
duplicate Issues or pull requests already exists.

Comments

@mawenbin666
Copy link

pingcap各位大牛早上好,问下为什么我这边跑sql总是有1105报错呢,我是用docker封装的php程序去跑sql脚本的。
#52 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#53 /var/www/html/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#54 {main}
[2018-06-25 16:27:50] local.ERROR: PDOException: SQLSTATE[HY000]: General error: 1105 line 87 column 38 near " rollup^M
" (total length 41523) in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:319
Stack trace:
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(319): PDO->prepare('\r\n select\r\n ...')
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(640): Illuminate\Database\Connection->Illuminate\Database{closure}('\r\n select\r\n ...', Array)
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(607): Illuminate\Database\Connection->runQueryCallback('\r\n select\r\n ...', Array, Object(Closure))
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(326): Illuminate\Database\Connection->run('\r\n select\r\n ...', Array, Object(Closure))

@tiancaiamao
Copy link
Contributor

From the log of the application, it seems the SQL statement is wrong.
Please post the error log of TiDB for us to debug. @007mawenbin

@shenli
Copy link
Member

shenli commented Jun 26, 2018

@007mawenbin Thanks for your feedback.
From the error message, I can see there is a MySQL syntax don't support by TiDB. You can get it from tidb-server's log. Use grep to search rollup in the log file.

@zz-jason
Copy link
Member

Thanks for your feedback, the root cause is that TiDB has not supported the group by modifier currently

@zz-jason zz-jason added duplicate Issues or pull requests already exists. and removed type/compatibility labels Jun 26, 2018
@zz-jason
Copy link
Member

duplicated with this issue: #4250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues or pull requests already exists.
Projects
None yet
Development

No branches or pull requests

4 participants