modified: backend/src/services/SqlExecutor.ts
This commit is contained in:
@@ -70,7 +70,12 @@ export class SqlExecutor {
|
||||
const d = debugResult.rows[0];
|
||||
console.log('[SQL Debug] pid:', d?.pid, 'cur_user:', d?.cur_user, 'sess_user:', d?.sess_user, 'role:', d?.role, 'isolation:', d?.isolation);
|
||||
|
||||
const queryResult = await pool.query(sqlQuery, params);
|
||||
// Disable prepared statements by using unique name each time
|
||||
const queryResult = await pool.query({
|
||||
text: sqlQuery,
|
||||
values: params,
|
||||
name: undefined // This disables prepared statement caching
|
||||
});
|
||||
console.log('[SQL Result] rowCount:', queryResult.rowCount, 'rows:', JSON.stringify(queryResult.rows).substring(0, 500));
|
||||
return queryResult;
|
||||
}, 3, 500); // 3 попытки с задержкой 500ms
|
||||
|
||||
Reference in New Issue
Block a user