forked from jamf/go-mysqldump
-
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.
fix: use native ScanType from driver and enhance RowBuffer to underst…
…and more types
- Loading branch information
Showing
4 changed files
with
488 additions
and
76 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
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 |
---|---|---|
|
@@ -228,7 +228,7 @@ func TestCreateTableAllValuesWithNil(t *testing.T) { | |
AddRow("email", ""). | ||
AddRow("name", "") | ||
|
||
rows := sqlmock.NewRowsWithColumnDefinition(c("id", 0), c("email", ""), c("name", "")). | ||
rows := sqlmock.NewRowsWithColumnDefinition(c("id", 0), c("email", sql.NullString{}), c("name", "")). | ||
AddRow(1, nil, "Test Name 1"). | ||
AddRow(2, "[email protected]", "Test Name 2"). | ||
AddRow(3, "", "Test Name 3") | ||
|
@@ -266,7 +266,7 @@ func TestCreateTableOk(t *testing.T) { | |
AddRow("email", ""). | ||
AddRow("name", "") | ||
|
||
createTableValueRows := sqlmock.NewRowsWithColumnDefinition(c("id", 0), c("email", ""), c("name", "")). | ||
createTableValueRows := sqlmock.NewRowsWithColumnDefinition(c("id", 0), c("email", sql.NullString{}), c("name", "")). | ||
AddRow(1, nil, "Test Name 1"). | ||
AddRow(2, "[email protected]", "Test Name 2") | ||
|
||
|
@@ -294,7 +294,7 @@ func TestCreateTableOk(t *testing.T) { | |
DROP TABLE IF EXISTS ~Test_Table~; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
SET character_set_client = utf8mb4 ; | ||
/*!50503 SET character_set_client = utf8mb4 */; | ||
CREATE TABLE 'Test_Table' (~id~ int(11) NOT NULL AUTO_INCREMENT,~s~ char(60) DEFAULT NULL, PRIMARY KEY (~id~))ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
@@ -325,7 +325,7 @@ func TestCreateTableOkSmallPackets(t *testing.T) { | |
AddRow("email", ""). | ||
AddRow("name", "") | ||
|
||
createTableValueRows := sqlmock.NewRowsWithColumnDefinition(c("id", 0), c("email", ""), c("name", "")). | ||
createTableValueRows := sqlmock.NewRowsWithColumnDefinition(c("id", 0), c("email", sql.NullString{}), c("name", "")). | ||
AddRow(1, nil, "Test Name 1"). | ||
AddRow(2, "[email protected]", "Test Name 2") | ||
|
||
|
@@ -353,7 +353,7 @@ func TestCreateTableOkSmallPackets(t *testing.T) { | |
DROP TABLE IF EXISTS ~Test_Table~; | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
SET character_set_client = utf8mb4 ; | ||
/*!50503 SET character_set_client = utf8mb4 */; | ||
CREATE TABLE 'Test_Table' (~id~ int(11) NOT NULL AUTO_INCREMENT,~s~ char(60) DEFAULT NULL, PRIMARY KEY (~id~))ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
|
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
Oops, something went wrong.