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

bug 当数据库类型包含zerofill的时候, 框架会做为八进制解析 #1733

Closed
haoxuelou opened this issue Apr 6, 2022 · 0 comments
Labels
done This issue is done, which may be release in next version. enhancement

Comments

@haoxuelou
Copy link

haoxuelou commented Apr 6, 2022

1. What version of Go and system type/arch are you using?

go version go1.17.2 darwin/amd64

2. What version of GoFrame are you using?

v1.16.6

3. Can this issue be re-produced with the latest release?

yes

4. What did you do?

CREATE TABLE `users` (
  `id` int(8) unsigned zerofill NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
id
-----------
00000014
00000013
00000012
00000011

5. What did you expect to see?

id
-----------
14
13
12
11

6. What did you see instead?

id
-----------
12
11
10
9
@gqcn gqcn added the done This issue is done, which may be release in next version. label May 9, 2022
@gqcn gqcn closed this as completed May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done This issue is done, which may be release in next version. enhancement
Projects
None yet
Development

No branches or pull requests

2 participants