Skip to content

with table as (insert ... returning ...) #164

Closed
@cmoad

Description

Is your feature request related to a problem? Please describe.
We are trying to convert a query that has a common table expression that is a result of insert...returning. We are getting the error goqu: unsupported expression type *goqu.InsertDataset from the sql generator.

Describe the solution you'd like
Adding a case for InsertExpression to

func (esg *expressionSQLGenerator) expressionSQL(b sb.SQLBuilder, expression exp.Expression) {

Describe alternatives you've considered
N/A

Dialect

  • postgres
  • mysql
  • sqlite3

Additional context
Opening this issue. We think we know the fix, but need to fork and setup our dev environments to get you a PR. Thanks for all the awesome work lately! We would like to contribute where possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions