Open confusionhill opened 1 year ago
@doug-martin Hey, if it's a bug, I'd be happy to work on it.
Also, if it's a bug, I'd appreciate any links/tips on a code that I need to take a look at the start point.
I know this ticket is quite old at this point, but I've run into the same issue as well. The conversion of a slice into an array in Postgres is either broken or obscure enough that I've been unable to find how to do so.
The code responsible for generation the invalid Postgres arrays is here: https://github.com/doug-martin/goqu/blob/master/sqlgen/expression_sql_generator.go#L369-L378
Describe the bug I'm currently trying to insert a list of email into my database, but the query that It produce does not complies to what postgres expected. Are there any issue or perhaps what i do is wrong? Thanks To Reproduce If applicable provide a small code snippet to reproduce the issue:
db entity :
query builder :
query result
Expected behavior A clear and concise description of what you expected to happen. expected query
the difference are withing the list of emails Dialect:
Additional context Add any other context about the problem here.