Page 1 of 1

Type mapping

PostPosted: Thu Oct 06, 2016 1:28 pm
by mdw
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.

Re: Type mapping

PostPosted: Fri Oct 07, 2016 9:03 am
by qxorm
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