-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Active Record (ORM) does not allow type guid as primary key #552
Comments
This is the intended behaviour. If you can run all the unit tests with your implementation feel free to provide a PR |
Ok, i do it. Thanks, |
Hi @danieleteti I finished my tests and added new improvements for use with guid-type primary key fields. I will send my solutions in new pull request for you. Thanks!
|
Important notes: https://quality.embarcadero.com/browse/RSP-19755?jql=text%20~%20%22firedac%20guid%22 Samples: in TFDCustomManager
or in TFDConnection
|
Thanks Marcelo. The changes has been merged, extended, integrated and fully tested. |
You are welcome. |
When you have a primary key field as uuid in the Postgres SQL, the DMVC framework feature Active Record raise the exception: "Allowed primary key types are: (Nullable)Integer, (Nullable)Int64, (Nullable)String - found: guid".
This occurs at the line 1182 of the unit MVCFramework.ActiveRecord in the method InitTableInfo.
My sollution include de lines below in the method InitTableInfo:
Can i to send a Pull request with this solution? Or exist other solution for this case?
Thanks,
Marcelo Jaloto
The text was updated successfully, but these errors were encountered: