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

NUT_INFO in NUT_DECLARE_TABLE and NUT_DECLARE_FIELD ...not work #128

Open
Wangpeiyu opened this issue Aug 26, 2022 · 3 comments
Open

NUT_INFO in NUT_DECLARE_TABLE and NUT_DECLARE_FIELD ...not work #128

Wangpeiyu opened this issue Aug 26, 2022 · 3 comments
Assignees

Comments

@Wangpeiyu
Copy link

Describe the bug
Noting nothing create in database,just __change_logs table created.
Debug with src code, find that NUT_INFO in NUT_DECLARE_TABLE not work, create table Q_CLASSINFO for the databse failed.
Then , use Q_CLASSINFO("nut_info::" "table" "TB_Point" "points", "table" "\n" "TB_Point" "\n" "points") insted NUT_INFO , find that there has no FIELD created for table, so NUT_INFO in NUT_DECLARE_FIELD not work.
So, NUT_INFO not work in other useage.
How to fix it?

Development platform:

  • OS: [e.g. Windows 11]
  • Qt version [e.g. 5.14]
  • Compiler [vs 2022 ]
  • MySql 8.0
@Wangpeiyu
Copy link
Author

test with Qt6 present the same problem.

@HamedMasafi
Copy link
Owner

Hi

Can I see your code?

@Wangpeiyu
Copy link
Author

Hi,
Thanks for your reply.
This is the code with qt6:https://drive.google.com/file/d/19yZrnpvcxNK-HmSKJRJKJN2ipa_AR85C/view?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants