@@ -351,6 +351,43 @@ for my $spec (
351351 dbi => [ [Server => ' foo' ], [Port => 123], [Database => ' try' ] ],
352352 qry => [ foo => 1, foo => 2, lol => ' yes' , Driver => ' HPVertica' ],
353353 },
354+ {
355+ uri => ' db:exasol:' ,
356+ dsn => ' dbi:ODBC:' ,
357+ dbi => [ [DSN => undef ] ],
358+ qry => [],
359+ alt => { odbc => ' dbi:ODBC:' , EXASOL => ' dbi:ODBC:' },
360+ },
361+ {
362+ uri => ' db:exasol:' ,
363+ dsn => ' dbi:ODBC:' ,
364+ dbi => [ [DSN => undef ] ],
365+ qry => [],
366+ },
367+ {
368+ uri => ' db:exasol:dbadmin' ,
369+ dsn => ' dbi:ODBC:DSN=dbadmin' ,
370+ dbi => [ [DSN => ' dbadmin' ] ],
371+ qry => [],
372+ },
373+ {
374+ uri => ' db:exasol://localhost' ,
375+ dsn => ' dbi:ODBC:EXAHOST=localhost;EXAPORT=8563' ,
376+ dbi => [ [EXAHOST => ' localhost' ], [EXAPORT => 8563] ],
377+ qry => [],
378+ },
379+ {
380+ uri => ' db:exasol://localhost:33' ,
381+ dsn => ' dbi:ODBC:EXAHOST=localhost;EXAPORT=33' ,
382+ dbi => [ [EXAHOST => ' localhost' ], [EXAPORT => 33] ],
383+ qry => [],
384+ },
385+ {
386+ uri => ' db:exasol://foo:123/try?foo=1&foo=2&lol=yes&Driver=HPExasol' ,
387+ dsn => ' dbi:ODBC:EXAHOST=foo;EXAPORT=123;foo=1;foo=2;lol=yes;Driver=HPExasol' ,
388+ dbi => [ [EXAHOST => ' foo' ], [EXAPORT => 123] ],
389+ qry => [ foo => 1, foo => 2, lol => ' yes' , Driver => ' HPExasol' ],
390+ },
354391) {
355392 my $uri = $spec -> {uri };
356393 ok my $u = URI-> new($uri ), " URI $uri " ;
0 commit comments