-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
.Include and .IncludeMany does not work with Guid keys in Postgres databases #311
Comments
Do u have workaround for Include in Postgresql? |
Yes that's true, can you make a PR for it? |
Hi @ahmad-moussawi, db.Query("environment").Where("siteenvironmentid", UserEnvironmentId).IncludeMany("Organizations", db.Query("organization"), "environmentid", "siteenvironmentid"); it generates this sql statements So it does not work because the second SELECT converts integers to strings |
there is a pr about that issue (see #494), why you don't merge this pr to solve this issue? |
Would love if this gets solved |
Hi,
When i use include method in postgres database with primary keys as guid i get the following error:
operator does not exist: uuid = text
I think the problem is here
querybuilder/SqlKata.Execution/QueryFactory.Extensions.Async.cs
Line 344 in d098a4e
instead of
.Select(x => x[include.LocalKey].ToString())
may be
.Select(x => x[include.LocalKey]);
The text was updated successfully, but these errors were encountered: