Nut icon indicating copy to clipboard operation
Nut copied to clipboard

tst_basic sample Nothing created,just __change_logs table created

Open Wangpeiyu opened this issue 2 years ago • 4 comments

Describe the bug I have tested tst_basic sample with Qt console application in vs2019, but nothing create in database just __change_logs table created. the output in console window: image the result in Mysql WorkBench: image

My code structure: image

Is there something wrong with my code?

Development platform:

  • OS: [Win10 x64]
  • Qt version [e.g. 5.14.2]
  • Compiler [e.g. vs2019]
  • Database [MYSQL8.0]

Wangpeiyu avatar Feb 11 '22 02:02 Wangpeiyu

Hi Thanks for reporting

Can you please test it with qt6 branch?

HamedMasafi avatar Feb 11 '22 11:02 HamedMasafi

OK, I will test with qt6 branch in next day.

Wangpeiyu avatar Feb 11 '22 11:02 Wangpeiyu

I have tested with Qt6 branch tst_basic sample with Qt console application in vs2019,but nothing create in database just __change_logs table created too. I test the default branch "tests.pro project" with Qt Creator ,everything was going well,may be something wrong with compile setting in vs2019.

Wangpeiyu avatar Feb 15 '22 00:02 Wangpeiyu

I have debuged with Qt5Nut resource code (vs2019),found q->metaObject()->classInfoCount() in database.cpp line 216 return 0 ,this line is use for create table list. image how to fix it?

Wangpeiyu avatar Feb 15 '22 06:02 Wangpeiyu