Closed madmaniak closed 1 year ago
You are probably providing strings instead of symbols (cannot say definitively because you didn't post a self-contained example.). Ruby strings are generally treated as SQL strings in Sequel, and Ruby symbols are generally treated as SQL identifiers (table/column names). The create_join_table
method documentation shows that the keys and values are supposed to be symbols. If that isn't what is happening, can you please post a minimal self-contained example showing the problem?
@jeremyevans thanks a lot for a quick answer - that was the case.
Complete Description of Issue
While using pg with sequel on
DB.create_join_table(left_id: left_table, right_id: right_table)
I receive following error:When I debug here
sequel-5.65.0/lib/sequel/adapters/postgres.rb:171
I receive following sql query being used:I can fix that query and use successfully with
psql
by changing last quotes'
to\"
. I didn't manage to fix it with Sequel though.Full Backtrace of Exception (if any)