mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-11 00:37:27 +02:00
[#6689] updated to automatically routes raw write SQL statements to the nonconcurrent db pool
This commit is contained in:
1 parent
3ef752c232
commit
836fc77ddc
27 files changed
+4601
-3917
No files matched your search
@@ -35,7 +35,7 @@ func (app *BaseApp) RecordQuery(collectionModelOrIdentifier any) *dbx.SelectQuer
|
||||
tableName = "@@__invalidCollectionModelOrIdentifier"
|
||||
}
|
||||
|
||||
query := app.DB().Select(app.DB().QuoteSimpleColumnName(tableName) + ".*").From(tableName)
|
||||
query := app.ConcurrentDB().Select(app.ConcurrentDB().QuoteSimpleColumnName(tableName) + ".*").From(tableName)
|
||||
|
||||
// in case of an error attach a new context and cancel it immediately with the error
|
||||
if collectionErr != nil {
|
||||
|
||||
Reference in new issue
Block a user