Type mapping

Use this forum to request new features or suggest modifications to existing features

Type mapping

Postby mdw » Thu Oct 06, 2016 1:28 pm

Currently QxEntityEditor maps SQL int/integer and long attributes to C++ long. This is not a good solution, since its length is platform dependent and hence not portable. For this exact reason also QVariant has no intrinsic support for it.

I think that "long" variables should be avoided as much as possible in favour of "int", "qint64", "long long" etc.
mdw
 
Posts: 34
Joined: Mon Feb 15, 2016 2:45 pm

Re: Type mapping

Postby qxorm » Fri Oct 07, 2016 9:03 am

Hello,

You can easily change the default mapping used by QxEntityEditor to map your SQL numeric type to qint64 for example.
In the import screen, there is a list of mappings where you can change the default behavior.

More details in documentation here : https://www.qxorm.com/qxorm_en/manual_q ... sql_import
qxorm
Site Admin
 
Posts: 476
Joined: Mon Apr 12, 2010 7:45 am


Return to QxEntityEditor - Feature request

Who is online

Users browsing this forum: No registered users and 1 guest

cron