Skip to content

Commit ad1d946

Browse files
committed
uuid and enum
1 parent 121e2d9 commit ad1d946

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/mysql-copy-tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Setup test data in source MySQL
4848
run: |
49-
mysqlsh -hlocalhost -P13306 -uroot -proot --sql -e "
49+
mysqlsh -hlocalhost -P13306 -uroot -proot --sql <<'EOF'
5050
CREATE DATABASE testdb;
5151
USE testdb;
5252
-- Normal table, which should be copied to MyDuck via duckdb's csv import
@@ -74,18 +74,19 @@ jobs:
7474
7575
-- Table with UUID primary key
7676
-- For such tables, MySQL Shell generates nontrivial LOAD DATA statements
77-
-- to copy the data to MyDuck: `LOAD DATA ... (@id, title, created_at) SET id = FROM_BASE64(@id)`,
77+
-- to copy the data to MyDuck: LOAD DATA ... (@id, title, created_at) SET id = FROM_BASE64(@id),
7878
-- which can only be executed by the go-mysql-server framework for now.
7979
CREATE TABLE documents (
8080
id BINARY(16) PRIMARY KEY,
8181
title VARCHAR(200),
82+
status ENUM('draft', 'published', 'archived') DEFAULT 'draft',
8283
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
8384
);
8485
85-
INSERT INTO documents (id, title) VALUES
86-
(UUID_TO_BIN(UUID()), 'Document 1'),
87-
(UUID_TO_BIN(UUID()), 'Document 2');
88-
"
86+
INSERT INTO documents (id, title, status) VALUES
87+
(UUID_TO_BIN(UUID()), 'Document 1', 'published'),
88+
(UUID_TO_BIN(UUID()), 'Document 2', 'draft');
89+
EOF
8990
9091
- name: Build and start MyDuck Server
9192
run: |

0 commit comments

Comments
 (0)