I have a query like SELECT... FROM ( SELECT ... FROM :dynamic_table_name ) a
If I call DB.fetch(sql, dyanmic_table_name: dynamic_table_name) then Sequel generates the following sql SELECT... FROM ( SELECT ... FROM 'dynamic_table_name' ) a which is a syntax error because table names aren't supposed to have quotes around them. Do I need to manually verify the table name is safe and insert it with string interpolation or does Sequel have a function that will do this for me? -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
