-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SQL Server dialect name to match switch case, update failing SQL …
…Server tests (#270) * Fix SQL Server dialect name to match switch case * Add NewNilBinUUID(), update tests for SQL Server * Use official SQL Server docker image for tests
- Loading branch information
1 parent
48115e5
commit b6ae660
Showing
6 changed files
with
29 additions
and
16 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
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 |
---|---|---|
|
@@ -38,7 +38,9 @@ func TestURL(t *testing.T) { | |
DB.Create(&f2) | ||
|
||
result := StructWithURL{} | ||
if err := DB.First(&result, "file_name = ? AND storage = ?", "FLocal1", | ||
if err := DB.First( | ||
&result, "file_name = ? AND storage LIKE ?", | ||
"FLocal1", | ||
datatypes.URL{ | ||
Scheme: "file", | ||
Path: "/tmp/f1", | ||
|
@@ -48,7 +50,9 @@ func TestURL(t *testing.T) { | |
AssertEqual(t, uf1.String(), result.Storage.String()) | ||
|
||
result = StructWithURL{} | ||
if err := DB.First(&result, "file_name = ? AND storage = ?", "FRemote2", | ||
if err := DB.First( | ||
&result, "file_name = ? AND storage LIKE ?", | ||
"FRemote2", | ||
datatypes.URL{ | ||
Scheme: "sftp", | ||
User: url.UserPassword("user", "pwd"), | ||
|
@@ -66,7 +70,9 @@ func TestURL(t *testing.T) { | |
AssertEqual(t, us, result.Storage.String()) | ||
|
||
result = StructWithURL{} | ||
if err := DB.First(&result, "file_name = ? AND storage = ?", "FRemote2", | ||
if err := DB.First( | ||
&result, "file_name = ? AND storage LIKE ?", | ||
"FRemote2", | ||
datatypes.URL{ | ||
Scheme: "sftp", | ||
Opaque: "//user:[email protected]/f2", | ||
|
@@ -78,7 +84,9 @@ func TestURL(t *testing.T) { | |
AssertEqual(t, us, result.Storage.String()) | ||
|
||
result = StructWithURL{} | ||
if err := DB.First(&result, "file_name = ? AND storage = ?", "FRemote2", | ||
if err := DB.First( | ||
&result, "file_name = ? AND storage LIKE ?", | ||
"FRemote2", | ||
datatypes.URL{ | ||
Scheme: "sftp", | ||
User: url.User("user"), | ||
|
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