-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Invalid input syntax for type uuid #79
Comments
Can you share you models schemas and the definition of the relationships? |
This was not a problem in 1.1.16 but is a problem in 1.1.17onward I have reverted my package to only use 1.1.16 and it removes the problem. Below is the query that a relationship runs which works in 1.1.16 but not in 1.1.17
This is a straight-up relationship as follows:
And it must use your package because other models hook up to it with dual key and it doesn't always pick up. As I said it was working but now it's broken. My Laravel is up to date as of 7.13.0 |
Verified it does not work with the 2.0.0 branch as well. |
Changing the query to the below works:
Correction this does not work in 2.0.0 so assuming it's not working in the prior versions |
@matalina Thanks for the input. I'll investigate |
hello can you please retest your case on master branch? I have added some test coverage for your case (#108) but it looks like it was already fixed in master. regards |
When using a uuid type as primary key, the relationship is made only using the first char and thus returns an input syntax error event when
$incrementing
is set asfalse
and$keyType
is set asstring
.The text was updated successfully, but these errors were encountered: