Skip to content
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

trying to preload a belongs_to association that doesn't exist throws exception #133

Open
fridgerator opened this issue Nov 16, 2017 · 0 comments
Labels

Comments

@fridgerator
Copy link
Member

fridgerator commented Nov 16, 2017

bind message supplies 0 parameters, but prepared statement "" requires 1
       0x100fedf35: *CallStack::unwind:Array(Pointer(Void)) at ??
       0x100feded1: *CallStack#initialize:Array(Pointer(Void)) at ??
       0x100fedea8: *CallStack::new:CallStack at ??
       0x100fe1285: *raise<PQ::PQError>:NoReturn at ??
       0x1013938bc: *PQ::Connection#handle_error<PQ::Frame::ErrorResponse>:NoReturn at ??
       0x10139372c: *PQ::Connection#handle_async_frames<(PQ::Frame+ | PQ::Frame::Unknown)>:Bool at ??
       0x101393388: *PQ::Connection#read<(Char | Nil)>:(PQ::Frame+ | PQ::Frame::Unknown) at ??
       0x101393219: *PQ::Connection#read:(PQ::Frame+ | PQ::Frame::Unknown) at ??
       0x101394ed8: *PQ::Connection#expect_frame<PQ::Frame::BindComplete:Class, Nil>:PQ::Frame::BindComplete at ??
       0x101394e9b: *PQ::Connection#expect_frame<PQ::Frame::BindComplete:Class>:PQ::Frame::BindComplete at ??
       0x10138bf56: *PG::Statement#perform_query<Array(Array(Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil) | Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil)>:PG::ResultSet at ??
       0x10139173d: *DB::Statement+@DB::Statement#perform_query_with_rescue<Array(Array(Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil) | Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil)>:PG::ResultSet at ??
       0x101391719: *DB::Statement+@DB::Statement#query<Array(Array(Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil) | Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil)>:PG::ResultSet at ??
       0x1013c87a5: *DB::PoolStatement+@DB::PoolStatement#query<Array(Array(Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil) | Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil)>:PG::ResultSet at ??
       0x1013507ed: *DB::Database@DB::QueryMethods#query<String, Array(Array(Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil) | Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil)>:PG::ResultSet at ??
       0x101311ec6: *Crecto::Adapters::Postgres@Crecto::Adapters::BaseAdapter::execute<DB::Database, String, Array(Array(Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil) | Bool | Float32 | Float64 | Int16 | Int32 | Int64 | JSON::Any | String | Time | Nil)>:PG::ResultSet at ??
       0x1013126c7: *Crecto::Adapters::Postgres@Crecto::Adapters::BaseAdapter::all<DB::Database, Crecto::Model+:Class, Crecto::Repo::Query>:PG::ResultSet at ??
       0x101312038: *Crecto::Adapters::Postgres@Crecto::Adapters::BaseAdapter::run<DB::Database, Symbol, Crecto::Model+:Class, Crecto::Repo::Query>:(PG::ResultSet | Nil) at ??
       0x10127225f: *Repo@Crecto::Repo::all<Crecto::Model+:Class, Crecto::Repo::Query>:(Array(Thing)) at ??
       0x101295927: *Repo@Crecto::Repo::belongs_to_preload<Array(Thing), Thing, Symbol>:Nil at ??
       0x10126d323: *Repo@Crecto::Repo::add_preloads<Array(Thing), Thing, Array(Symbol)>:Nil at ??
       0x10126d240: *Repo@Crecto::Repo::all<Thing, Crecto::Repo::Query>:Array(Thing) at ??
@watzon watzon added the bug label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants