This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#9: Isolate mysql generated columns from integration tests so the bui…
…ld can execute, for now, without these features
- Loading branch information
1 parent
d8e8124
commit 01bcc01
Showing
5 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE `Person` ( | ||
Id int not null auto_increment primary key, | ||
Name nvarchar(255) not null, | ||
Title varchar(10), | ||
Age int, | ||
Price decimal(18, 2), | ||
DoB date, | ||
Deleted bit(1) not null default 0, | ||
PriceIncVat decimal(18, 2) AS (`Price` * 1.2) | ||
); |
45 changes: 45 additions & 0 deletions
45
TestScenarios/Read_AllColumnTypes/#9-ExpectedOutput.MySql.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"tables": { | ||
"`Person`": { | ||
"columns": { | ||
"Id": { | ||
"type": "int", | ||
"nullable": false, | ||
"primaryKey": true | ||
}, | ||
"Name": { | ||
"type": "nvarchar(255)", | ||
"nullable": false, | ||
"primaryKey": false | ||
}, | ||
"Title": { | ||
"type": "varchar(10)", | ||
"primaryKey": false | ||
}, | ||
"Age": { | ||
"type": "int", | ||
"primaryKey": false | ||
}, | ||
"Price": { | ||
"type": "decimal(18,2)", | ||
"primaryKey": false | ||
}, | ||
"DoB": { | ||
"type": "date", | ||
"primaryKey": false | ||
}, | ||
"Deleted": { | ||
"type": "bit(1)", | ||
"nullable": false, | ||
"default": 0, | ||
"primaryKey": false | ||
}, | ||
"PriceIncVat": { | ||
"expression": "`Price` * 1.2", | ||
"primaryKey": false, | ||
"type": "decimal(18,2)" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
This scenario tests vcdb to confirm it can create the expected schema JSON from a given database. | ||
|
||
This scenario tests that all built in SQL data types can be read correctly. | ||
This scenario tests that all built in SQL data types can be read correctly. | ||
|
||
MySql generated columns are supported from mysql v8, however the build environment doesn't support mysql v8 & sqlserver at the same time, see issue #9. | ||
Until this issue is resolved, all tests need to be paired back to what mysql v5.7.3 supports. |