-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing oleodbc and adodb DSN generation to properly ignore odbc ignor…
…ed query prefixes
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -325,12 +325,24 @@ func TestParse(t *testing.T) { | |
`Data Source=Oracle8i;Database=dbname;Password=pass;Port=1542;Provider=Provider.Name;User ID=user`, | ||
``, | ||
}, | ||
{ | ||
`adodb://user:[email protected]:1542/Oracle8i/dbname?not_ignored=1&usql_ignore=1`, | ||
`adodb`, | ||
`Data Source=Oracle8i;Database=dbname;Password=pass;Port=1542;Provider=Provider.Name;User ID=user;not_ignored=1`, | ||
``, | ||
}, | ||
{ | ||
`oo+Postgres+Unicode://user:pass@host:5432/dbname`, | ||
`adodb`, | ||
`Provider=MSDASQL.1;Extended Properties="Database=dbname;Driver={Postgres Unicode};PWD=pass;Port=5432;Server=host;UID=user"`, | ||
``, | ||
}, | ||
{ | ||
`oo+Postgres+Unicode://user:pass@host:5432/dbname?not_ignored=1&usql_ignore=1`, | ||
`adodb`, | ||
`Provider=MSDASQL.1;Extended Properties="Database=dbname;Driver={Postgres Unicode};PWD=pass;Port=5432;Server=host;UID=user;not_ignored=1"`, | ||
``, | ||
}, | ||
{ | ||
`odbc+Postgres+Unicode://user:pass@host:5432/dbname?not_ignored=1`, | ||
`odbc`, | ||
|
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