You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I keep getting this message on the live version:
DB Version: PostgreSQL 14
ERROR: prepared statement "pgx_8" does not exist (SQLSTATE 26000);
ERROR: prepared statement "pgx_9" does not exist (SQLSTATE 26000) ;
The number after pgx_ e.g "pgx_[number]" keeps changing on each request
Connection instance:
dsn = fmt.Sprintf("host=%s user=%s password=%s dbname=%s port=%s sslmode=%s",
host, user, password, dbname, port, sslmode)
db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{
PrepareStmt: true,
})
This happens whenever I use prepared placeholder like:
DB.Preload(clause.Associations).Where("uuid = ?", ctx.Param("uuid")).First(&user)
Please I need resolve this, it's affecting a live app.
Beta Was this translation helpful? Give feedback.
All reactions