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
Duplicate column name 'id' when select count(*) from ... #36
Comments
Thanks for your report! We'll try to reproduce and fix it. |
Same here... |
Thanks for your report @lunny @unknwon The first one is a potential bug in https://github.com/go-xorm/tidb/blob/master/tidb_driver.go#L42. The second one is about auto_increment column. |
Why the auto increment id is not start from 1 but 1001? I think this is the problem. |
For performance consideration, we choose an auto increment id assigning algorithm as this: All the auto increment id related codes for a table share the same start_number. In this case, I think 1~1000 is assigned before inserting column "id". So column "id" inserting gets the start_number 1001. |
It's now keep giving me this error.... is this the same behavior of MySQL? |
@unknwon May I see your code? |
Thanks @shenli ! I've updated driver and it works now, but there is always a warning message:
And it prints a sound, what is the purpose of this? |
Is |
I have updated go-xorm/tests and the autoincrement problem is gone. I will close this, since the problem is resolved. @unknwon, you can make a new issue to report the problem. |
fix bug of password policy
* *: extract backup progress to ProgressPrinter Signed-off-by: Neil Shen <overvenus@gmail.com> * *: support restore progress Signed-off-by: Neil Shen <overvenus@gmail.com> * restore: update split and scatter progress Signed-off-by: Neil Shen <overvenus@gmail.com> * restore: update import file progress Signed-off-by: Neil Shen <overvenus@gmail.com> * restore: track split/scatter progress Signed-off-by: Neil Shen <overvenus@gmail.com> * make tidy Signed-off-by: Neil Shen <overvenus@gmail.com>
release-6.2: pull bug fixes from upstream
…pingcap#36) close pingcap#50312, close pingcap#50315 Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
and run
go test
, then it panic. Then we open the db use interpreter, and the result is below.The text was updated successfully, but these errors were encountered: