add sql_mode
This commit is contained in:
parent
7b2587be7d
commit
f800e74379
2 changed files with 6 additions and 0 deletions
|
|
@ -259,6 +259,9 @@ export class ReportController extends Controller {
|
|||
tenureTypeCondition = "registryOfficer.Years BETWEEN :tenureMin AND :tenureMax"; //xxxxxxxxxxxx
|
||||
}
|
||||
|
||||
const sql_mode = await AppDataSource.query(
|
||||
"SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));",
|
||||
);
|
||||
const [lists, total] = await AppDataSource.getRepository(viewRegistryOfficer)
|
||||
.createQueryBuilder("registryOfficer")
|
||||
.where(nodeCondition, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue