/src/test/java/com/t11e/discovery/datatool/IntegrationTestCreate.sql

http://github.com/t11e/discovery_datatool · SQL · 39 lines · 33 code · 6 blank · 0 comment · 0 complexity · 3a37b3bc92f484e4451c620913628b8e MD5 · raw file

  1. create table IntegrationContent (
  2. id bigint generated by default as identity,
  3. lastUpdated timestamp
  4. );
  5. insert into IntegrationContent (id, lastUpdated) values
  6. (1, '2010-01-01-00.00.00.000000'),
  7. (2, '2010-01-01-00.00.00.000000'),
  8. (3, '2010-01-01-00.00.00.000000');
  9. create table IntegrationProfile (
  10. name varchar(20) not null unique,
  11. lastRun timestamp
  12. );
  13. insert into IntegrationProfile (name, lastRun) values
  14. ('test', NULL);
  15. create table IntegrationDeleted (
  16. id bigint primary key,
  17. lastUpdated timestamp
  18. );
  19. insert into IntegrationDeleted (id, lastUpdated) values
  20. (4, '2010-01-01-00.00.00.000000'),
  21. (5, '2010-01-01-00.00.00.000000');
  22. create table IntegrationTextContent (
  23. id bigint generated by default as identity,
  24. text_content clob
  25. );
  26. insert into IntegrationTextContent (id, text_content) values
  27. (1, 'Hello & < > " '' goodbye');
  28. create procedure IntegrationContentSP(startTime timestamp, endTime timestamp)
  29. parameter style java
  30. language java
  31. reads sql data
  32. dynamic result sets 1
  33. external name 'com.t11e.discovery.datatool.IntegrationTestBase.integrationContentSP';