Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
issue #1769
Added unsigned integer mapping to Long, following the MySQL connector reference. Added code for unsigned bigint aswell, but scala.math.BigInt isn't support as a default datatype, I left these parts in for completeness, but commented out. Updated the tests for the MySQLProfile to cover the new conversion. Additionally fixed two typos, I spotted randomly.
- Loading branch information
Showing
with
13 additions
and 5 deletions.
- +1 −1 slick-testkit/src/codegen/resources/dbs/mysql.sql
- +4 −1 slick-testkit/src/codegen/scala/slick/test/codegen/GenerateMainSources.scala
- +1 −1 slick/src/main/scala/slick/jdbc/JdbcCapabilities.scala
- +1 −1 slick/src/main/scala/slick/jdbc/JdbcModelBuilder.scala
- +6 −1 slick/src/main/scala/slick/jdbc/MySQLProfile.scala
@@ -1,4 +1,4 @@ | ||
CREATE TABLE `LongTextTest`( entry1 LONGTEXT NOT NULL , entry2 MEDIUMTEXT NOT NULL , entry3 TEXT NOT NULL , entry4 VARCHAR(255) NOT NULL ); | ||
CREATE TABLE DEFAULT_NUMERIC( d0 decimal(13,2) NOT NULL DEFAULT '0.00',d1 decimal(13) NOT NULL DEFAULT 0.00, d3 INT NOT NULL DEFAULT '0.00' ); | ||
CREATE TABLE `table_name`( id INT NOT NULL, si SMALLINT NOT NULL, mi MEDIUMINT NOT NULL, bi BIGINT NOT NULL ); | ||
CREATE TABLE `table_name`( id INT NOT NULL, si SMALLINT NOT NULL, mi MEDIUMINT NOT NULL, ui INT UNSIGNED NOT NULL, bi BIGINT NOT NULL/*, ubi BIGINT UNSIGNED NOT NULL*/ ); | ||
CREATE TABLE `bit_test`(b1 BIT NOT NULL, b2 BIT NOT NULL DEFAULT b'0', b3 BIT NOT NULL DEFAULT b'1'); |