Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11722372
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
View Options
diff --git a/tests/data/mysql.sql b/tests/data/mysql.sql
new file mode 100644
index 0000000..96e461d
--- /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/x-diff
Expires
Thu, Sep 18, 02:08 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2987214
Default Alt Text
(1 KB)
Attached To
Mode
rKERUALD Keruald libraries development repository
Attached
Detach File
Event Timeline
Log In to Comment