File: issue_1152.sql

package info (click to toggle)
percona-toolkit 3.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 68,916 kB
  • sloc: perl: 241,287; sql: 22,868; sh: 19,746; javascript: 6,799; makefile: 353; awk: 38; python: 30; sed: 1
file content (42 lines) | stat: -rw-r--r-- 1,437 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
DROP DATABASE IF EXISTS issue_1152;
DROP DATABASE IF EXISTS issue_1152_archive;
CREATE DATABASE issue_1152;
CREATE DATABASE issue_1152_archive;

USE issue_1152;
CREATE TABLE `t` (
  `LineTestID` bigint(19) unsigned NOT NULL AUTO_INCREMENT,
  `JobCreatedTime` bigint(20) unsigned DEFAULT NULL,
  `JobScheduledTime` bigint(20) unsigned DEFAULT NULL,
  `JobStartTime` bigint(20) unsigned DEFAULT NULL,
--  `JobFinishTime` bigint(20) unsigned DEFAULT NULL,
--  `Priority` tinyint(3) unsigned DEFAULT NULL,
--  `JobType` tinyint(3) unsigned DEFAULT NULL,
--  `TerminationNumber` varchar(40) NOT NULL,
  PRIMARY KEY (`LineTestID`)
--  KEY `index1` (`JobScheduledTime`,`TerminationNumber`)
) ENGINE=InnoDB;
INSERT INTO issue_1152.t VALUES
   (null, 1, 2, 3),
   (null, 2, 2, 3),
   (null, 3, 2, 7),
   (null, 4, 2, 3),
   (null, 5, 2, 3),
   (null, 6, 2, 3),
   (null, 7, 2, 3),
   (null, 8, 2, 3),
   (null, 9, 2, 3),
   (null, 10, 2, 3);

USE issue_1152_archive;
CREATE TABLE t (
  `JobCreatedTime` bigint(20) unsigned DEFAULT NULL,
  `JobScheduledTime` bigint(20) unsigned DEFAULT NULL,
  `JobStartTime` bigint(20) unsigned DEFAULT NULL
--  `JobFinishTime` bigint(20) unsigned DEFAULT NULL,
--  `Priority` tinyint(3) unsigned DEFAULT NULL,
--  `JobType` tinyint(3) unsigned DEFAULT NULL,
--  `TerminationNumber` varchar(40) NOT NULL,
--  PRIMARY KEY (`LineTestID`),
--  KEY `index1` (`JobScheduledTime`,`TerminationNumber`)
) ENGINE=InnoDB;