Open JustSamuel opened 11 months ago
Hi, @JustSamuel, sorry for not reacting on your issue yet you opened couple of months ago. I'll try to test clickhouse with your code example next weekend, potentially it's also worth to add clickhouse container to integration test suite.
Sorry, didn't manage it yet.
Any updates?
Running the example of the README gives a 101 Unexpected query when running multiple migrations with
UseTransaction = true
.The error received is an
code: 101, message: Unexpected packet Query received from client
after the first migration. The last function called before the commit is theinsertMigration
function. Slightly tweaking this has different results.For example, the following works without error:
But even something like
return g.tx.Table("migrations").Create(record).Error
fails.Funnily enough, the following does work, most likely because the transaction is committed earlier.
System