2023-01-26 16:13:50 +01:00
|
|
|
|
|
|
|
insert into test_div(numerator, denominator) values (100, 5);
|
|
|
|
insert into test_div(numerator, denominator) values (10000000, 3);
|
|
|
|
insert into test_div(numerator, denominator) values (987654321000, 7);
|
|
|
|
commit;
|
|
|
|
|
2023-01-26 20:48:31 +01:00
|
|
|
/*
|
|
|
|
This is known to fail. Uncomment as required.
|
2023-01-26 16:13:50 +01:00
|
|
|
set bail off;
|
|
|
|
insert into test_div(numerator, denominator) values (9876543210000000000, 7);
|
|
|
|
set bail on;
|
2023-01-26 20:48:31 +01:00
|
|
|
*/
|
2023-01-26 16:13:50 +01:00
|
|
|
commit;
|
2023-01-26 20:48:31 +01:00
|
|
|
|
2023-02-02 09:17:09 +01:00
|
|
|
/*
|
2023-02-03 15:03:05 +01:00
|
|
|
* It would be nice to dynamically generate these file names and descriptions depending upon OS platform.
|
|
|
|
* This requires some shell trickery.
|
2023-02-02 09:17:09 +01:00
|
|
|
*/
|
2023-01-26 20:48:31 +01:00
|
|
|
|
2023-02-03 15:03:05 +01:00
|
|
|
-- A text file smaller than max blob segment size
|
2023-02-02 09:17:09 +01:00
|
|
|
insert into test_blobs( description, file_type, source_file ) values ('fb config', 'txt', '/opt/firebird/firebird.conf');
|
2023-02-03 15:03:05 +01:00
|
|
|
|
|
|
|
-- A text file that _may_ be larger than max blob segment size
|
2023-02-02 09:17:09 +01:00
|
|
|
insert into test_blobs( description, file_type, source_file ) values ('fb log', 'txt', '/opt/firebird/firebird.log');
|
2023-02-03 15:03:05 +01:00
|
|
|
|
|
|
|
-- a binary file smaller than max blob segment size
|
|
|
|
insert into test_blobs( description, file_type, source_file ) values ('timezoneTypes', 'bin', '/opt/firebird/tzdata/timezoneTypes.res');
|
|
|
|
|
|
|
|
-- a binary file larger than max blob segment size
|
|
|
|
insert into test_blobs( description, file_type, source_file ) values ('zoneinfo64.res', 'bin', '/opt/firebird/tzdata/zoneinfo64.res');
|
|
|
|
|
|
|
|
-- a binary file smaller than max blob segment size
|
|
|
|
insert into test_blobs( description, file_type, source_file ) values ('ib_util lib', 'bin', '/opt/firebird/lib/libib_util.so');
|
|
|
|
|
|
|
|
-- a binary file larger than max blob segment size - may need to set write perm if this fails
|
|
|
|
insert into test_blobs( description, file_type, source_file ) values ('udr plugin engine', 'bin', '/opt/firebird/plugins/libudr_engine.so');
|
|
|
|
|
|
|
|
-- A text file that is larger than max blob segment size (on Firebird 4.0) May not exist in all installs
|
|
|
|
--insert into test_blobs( description, file_type, source_file ) values ('fb changelog', 'txt', '/opt/firebird/CHANGELOG.md');
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Untested but this should be the windows equivalent - Note that the tests in testudrkit-tests.dml would need to be changed too!
|
|
|
|
insert into test_blobs( description, file_type, source_file ) values ('fb config', 'txt', 'C:\\Program Files\\Firebird\\Firebird_4_0\\firebird.conf');
|
|
|
|
insert into test_blobs( description, file_type, source_file ) values ('fb log', 'txt', 'C:\\Program Files\\Firebird\\Firebird_4_0\\firebird.log');
|
|
|
|
*/
|
|
|
|
|
2023-01-26 20:48:31 +01:00
|
|
|
|
2023-02-02 16:11:52 +01:00
|
|
|
commit;
|