Comments (4)
Hey @jseriff. I looked into this today. I haven't finished fixing it because I was quite busy and there's another complicated problem that surfaced underneath this one. Will try to get it fixed soon though :) Half-fixed on my local atm.
from sqlboiler.
Your sample program now runs correctly, and does the most efficient queries we can without joins.
SELECT * FROM "test_schema"."parents";
[]
load rels models.Parent [Children Thirds]
!loaded Children
loadChildren!
select * from "test_schema"."children" where "parent_id" in ($1,$2)
[1 2]
collection type models.ChildSlice
load rels models.Child [Thirds]
!loaded Thirds
loadThirds!
select * from "test_schema"."third" where "children_id" in ($1,$2,$3)
[1 2 3]
I'm not ultra-confident this will work in all cases because my tests are a bit weak because I ran out of time tonight. Might revise this later. Will fix your other bug tomorrow. Do you mind trying the new code? :)
from sqlboiler.
Fixed tests and one more bug this morning.
from sqlboiler.
This issue appears to be solved on dev. Thanks!
from sqlboiler.
Related Issues (20)
- Upsert not returning all model attributes on conflict HOT 3
- [Feature Request] Ignore Composite Foreign Key Constraint HOT 2
- Enum collision problem HOT 1
- Exposing more table constants/metadata to facilitate metaprogramming HOT 1
- Enum order auto-gen
- Eager loading user table results in an sql error if the user table has a delete_at field
- Bug: various int arrays are generated as `types.Int64Array` which leads to out of range errors in tests
- Bug: .Bind() is not working properly when selecting specific columns HOT 3
- types aliasing only replaces one type
- Request to revert PR #1290 (BUG) HOT 3
- Bug in `queries.MakeStructMapping` when boil tag is `boil:",bind"` HOT 1
- [feature request] MySQL Optimizer Hints HOT 4
- FeatureRequest: struct tag case only for json HOT 3
- Bug in queries/reflect.go in which bind does not check rows.Err() prior to returning sql.ErrNoRows HOT 1
- Bug when binding to *struct in struct HOT 1
- AndIn generates a list of pairs instead of a flat list. HOT 1
- Non deterministic column binding when same column name across two tables (inner join) HOT 1
- Configuring aliases for relationships for sqlite is not working HOT 6
- types.Hstore does not works HOT 1
- Foreign key causes "panic: interface conversion: string is not error: missing method Error" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlboiler.