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

The field names generated by "gf gen dao" have changed. v2.7.2 #3749

Closed
livecopilot opened this issue Aug 29, 2024 · 7 comments · Fixed by #3801
Closed

The field names generated by "gf gen dao" have changed. v2.7.2 #3749

livecopilot opened this issue Aug 29, 2024 · 7 comments · Fixed by #3801
Assignees
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version.

Comments

@livecopilot
Copy link

Go version

go1.22.5 darwin/arm64

GoFrame version

2.7.2

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

gf gen dao

What did you see happen?

40ADD79542EC5DECAE42E5C79F066BD4

What did you expect to see?

in gf v2.7.1 and other old version , it's ParentId, and I don't want make it change in v2.7.2。

@livecopilot livecopilot added the bug It is confirmed a bug, but don't worry, we'll handle it. label Aug 29, 2024
@oldme-git oldme-git added the cannot reproduce We cannot reproduce it, it might resolved in new version or you should give more details. label Sep 13, 2024
@oldme-git
Copy link
Member

oldme-git commented Sep 13, 2024

v2.7.3 can't reproduce the issue. Please you try usring new version or provide more information. Thanks!

@livecopilot
Copy link
Author

v2.7.3 can't reproduce the issue. Please you try usring new version or provide more information. Thanks!

v2.7.3 has the same issue.
and i use pgsql, version v14

hack/config.yaml like

gfcli:
  # 工具编译配置
  build:
    arch: "amd64"
    system: "linux"
    path: "./temp"
    packSrc: ""
    extra: '-tags timetzdata -ldflags="-s -w"'
    mod: ""
    cgo: 0

  # dao生成
  gen:
    dao:
      - link: "pgsql:[account]:[password]@tcp([host]:5432)/[database]"
        removePrefix: ""
        descriptionTag: true
        noModelComment: true
        daoPath: "repository/db/dao"
        doPath: "repository/db/do"
        entityPath: "repository/db/entity"

@oldme-git oldme-git self-assigned this Sep 13, 2024
@zth1987
Copy link

zth1987 commented Sep 14, 2024

v2.7.3 has the same issue.

1726300201101
image
image

@oldme-git oldme-git removed the cannot reproduce We cannot reproduce it, it might resolved in new version or you should give more details. label Sep 15, 2024
@oldme-git
Copy link
Member

I still can't reproduce the issue in PgSQL v14 and v16 in Linux.

@zth1987
Copy link

zth1987 commented Sep 23, 2024

I still can't reproduce the issue in PgSQL v14 and v16 in Linux.

My database is MySQL

@livecopilot
Copy link
Author

I still can't reproduce the issue in PgSQL v14 and v16 in Linux.

please use mac os, and i think it can reproduce。 and my develop machine is mac book pro, m series chips.

@gqcn
Copy link
Member

gqcn commented Sep 24, 2024

@zth1987 @livecopilot @oldme-git Guys, let me have a double check.

@gqcn gqcn self-assigned this Sep 24, 2024
@gqcn gqcn added the done This issue is done, which may be release in next version. label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version.
Projects
None yet
4 participants