-
Notifications
You must be signed in to change notification settings - Fork 127
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
Bug: Insert exception since 1.1.3 with mysql... #765
Comments
Can you share the exception or the stack trace? |
i did put the exception message in there - do you need more? i also changed the code to do Insert<> one at a time with the models and the exception happens on the first insert<> attempt - just fyi
raw stacktrace |
Well, the property |
"id" comes from the web service but is actually the audit_id value and is a bigint - the db id column is just an int autoinc that is irrelevant - the [Map("audit_id")] establishes the relationship up to 2 versions ago - did this behaviour change then? |
Hmmm. There should be no changes have been made that should affect the behavior, and if it does, then it is an issue. FYI: We had re-wrote our compiler from scratch starting version 1.12.x, thus many issues has been raised right after that, but they had all been addressed already. This issue reported might be one of the issue that has been affected by those changes. I am afraid that the When do you need the fix? |
Had you tried using the automatic conversion type? |
the conversion of bigint to int is not what i want here - the value that gets rehydrated into the model is called "id" but actually has to go into the "audit_id" bigint column - i cannot change what the column is called as it comes from the web service so i have to get this into that table this still works without problem with versions up to this and the previous release of the lib, then it breaks with this obviously a fix, if one is reqd, would ideally be now now but of course i understand this is not how things work so i would ask that if you could put it as high up the list as you can, and get to it as soon as you can, then i can ask no more and would be tremendously grateful - i think it is amazing that you respond so quickly and do this work in the first place - so thanks whatever happens |
Okay, currently, I am a bit occupied, but if you can help me creating a very small console application that can replicate this problem using the v1.12.7 release. Attach your database script on the solution as well and then attach the small solution on this thread. I want to start fixing this one up for you and issue a beta ASAP. |
will do - thanks |
should i attach it here? or send it somewhere else? |
Just attached it here. :) Thanks |
Will get back to you on this on weekend and will probably issue you a fix before Monday. |
amazing - can't thank you enough :) |
#765 - Fixes for "Bug: Insert exception since 1.1.3 with mysql..."
The fix is now available at RepoDb v1.12.8-beta1. Please install this latest version of core library. Install-Package RepoDb -version 1.12.8-beta1 |
hi again
great to see the project moving forward to even better things - thanks for all the work :)
since the upgrade to 1.1.3 insertall<>() code that used to work (and old builds do still work) fails with the following exception:
Expression of type 'System.Int32' cannot be used for parameter of type 'System.Int64' of method 'Void set_id(Int64)'
what info would you need to guess at what might be causing this? the model is as follows:
the table create is:
as i said, if i run the app built with versions before 1.1.3 everything works as always
any help appreciated
The text was updated successfully, but these errors were encountered: