Skip to content

Remove invalid bigquery create callbacks#42

Open
takanuva15 wants to merge 1 commit into
go-gorm:masterfrom
takanuva15:master
Open

Remove invalid bigquery create callbacks#42
takanuva15 wants to merge 1 commit into
go-gorm:masterfrom
takanuva15:master

Conversation

@takanuva15

@takanuva15 takanuva15 commented Jun 25, 2026

Copy link
Copy Markdown
  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

BigQuery does not support ON CONFLICT nor RETURNING. Thus it should not be available for the gorm create callbacks.

googleapi: Error 400: Syntax error: Expected end of input but got identifier "RETURNING" at [1:266], invalidQuery
[235.079ms] [rows:0] INSERT INTO `Segments` (`id`,`name`,`value`,`...`) VALUES (?,?,?,...) RETURNING `...`
image

User Case Description

gorm currently tries to include ON CONFLICT when saving/updating partial structs

@takanuva15 takanuva15 force-pushed the master branch 2 times, most recently from 4118a21 to 82fad04 Compare June 29, 2026 17:21
@takanuva15

Copy link
Copy Markdown
Author

@jinzhu Hi, request review on this PR to prevent invalid gorm syntax when creating records in BigQuery

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant