thrownewDatabaseError(`Could not query ${this.classSchema.getClassName()} due to SQL error ${error}.\nSQL: ${sql.sql}\nParams: ${JSON.stringify(sql.params)}`);
thrownewDatabaseError(`Could not query ${this.classSchema.getClassName()} due to SQL error ${error}.\nSQL: ${sql.sql}\nParams: ${JSON.stringify(sql.params)}`);
}finally{
connection.release();
}
if(model.isAggregate()||model.sqlSelect){
//when aggregate the field types could be completely different, so don't normalize