David Rogers
04/13/2023, 6:02 PMDavid Rogers
04/13/2023, 6:04 PMtransaction {
try {
queryExecute("
create table RMME_FOO (id int);
insert into RMME_FOO (id) values (1), (1), (1), (1); -- comment this out to cause the index creation to succeed
")
v = queryExecute("
delete top (1) from RMME_FOO;
create unique index RMME_FOO_UNIQUE_BY_ID on RMME_FOO (id);
")
writedump(v); // no error ??
idx = queryExecute("
select * from sys.indexes where name = N'RMME_FOO_UNIQUE_BY_ID'
")
writedump(idx); // nothing, index creation failed because there were duplicates
}
finally {
transaction action="rollback";
}
}bdw429s
04/13/2023, 6:22 PMbdw429s
04/13/2023, 6:22 PMbdw429s
04/13/2023, 6:22 PMbdw429s
04/13/2023, 6:22 PMbdw429s
04/13/2023, 6:23 PMDavid Rogers
04/13/2023, 6:23 PMbdw429s
04/13/2023, 6:23 PMbdw429s
04/13/2023, 6:24 PMdswitzer
04/13/2023, 7:53 PMlucee.datasource.mssql.modern=true environment variable to Lucee, it should throw the exception.dswitzer
04/13/2023, 7:54 PMDavid Rogers
04/13/2023, 7:55 PMonReceiveExceptionsThrowExceptions , or there's other stuff