Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 394470d

Browse files
Fixing so the temporary tables use same data types as the source columns.
1 parent 3d6eaca commit 394470d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

procedures/ps_trace_statement_digest.sql

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -157,29 +157,29 @@ BEGIN
157157

158158
DROP TEMPORARY TABLE IF EXISTS stmt_trace;
159159
CREATE TEMPORARY TABLE stmt_trace (
160-
thread_id BIGINT,
161-
timer_start BIGINT,
162-
event_id BIGINT,
160+
thread_id BIGINT UNSIGNED,
161+
timer_start BIGINT UNSIGNED,
162+
event_id BIGINT UNSIGNED,
163163
sql_text longtext,
164-
timer_wait BIGINT,
165-
lock_time BIGINT,
166-
errors BIGINT,
167-
mysql_errno BIGINT,
168-
rows_sent BIGINT,
169-
rows_affected BIGINT,
170-
rows_examined BIGINT,
171-
created_tmp_tables BIGINT,
172-
created_tmp_disk_tables BIGINT,
173-
no_index_used BIGINT,
164+
timer_wait BIGINT UNSIGNED,
165+
lock_time BIGINT UNSIGNED,
166+
errors BIGINT UNSIGNED,
167+
mysql_errno INT,
168+
rows_sent BIGINT UNSIGNED,
169+
rows_affected BIGINT UNSIGNED,
170+
rows_examined BIGINT UNSIGNED,
171+
created_tmp_tables BIGINT UNSIGNED,
172+
created_tmp_disk_tables BIGINT UNSIGNED,
173+
no_index_used BIGINT UNSIGNED,
174174
PRIMARY KEY (thread_id, timer_start)
175175
);
176176

177177
DROP TEMPORARY TABLE IF EXISTS stmt_stages;
178178
CREATE TEMPORARY TABLE stmt_stages (
179-
event_id BIGINT,
180-
stmt_id BIGINT,
179+
event_id BIGINT UNSIGNED,
180+
stmt_id BIGINT UNSIGNED,
181181
event_name VARCHAR(128),
182-
timer_wait BIGINT,
182+
timer_wait BIGINT UNSIGNED,
183183
PRIMARY KEY (event_id)
184184
);
185185

0 commit comments

Comments
 (0)