Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3751375
D2512.id6335.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2512.id6335.diff
View Options
diff --git a/tests/data/mysql.sql b/tests/data/mysql.sql
new file mode 100644
--- /dev/null
+++ b/tests/data/mysql.sql
@@ -0,0 +1,31 @@
+create database if not exists test_keruald_db;
+
+use test_keruald_db;
+
+drop table if exists numbers;
+create table numbers
+(
+ number_id bigint auto_increment primary key,
+ number int null
+);
+
+drop table if exists ships;
+create table ships
+(
+ id int auto_increment primary key,
+ name varchar(255) null,
+ category varchar(3) null
+);
+
+INSERT INTO `ships` VALUES
+ (1,'So Much For Subtlety','GSV'),
+ (2,'Unfortunate Conflict Of Evidence','GSV'),
+ (3,'Just Read The Instructions','GCU'),
+ (4,'Just Another Victim Of The Ambient Morality','GCU');
+
+drop view if exists ships_count;
+create view ships_count as
+select `test_keruald_db`.`ships`.`category` AS `category`,
+ count(`test_keruald_db`.`ships`.`category`) AS `count(category)`
+from `test_keruald_db`.`ships`
+group by `test_keruald_db`.`ships`.`category`;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 07:58 (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250323
Default Alt Text
D2512.id6335.diff (1 KB)
Attached To
Mode
D2512: Provide small MySQL schema for unit tests
Attached
Detach File
Event Timeline
Log In to Comment