fix bug in sqlite db name parsing
This commit is contained in:
parent
e88d320934
commit
eb6934c3e5
|
@ -452,5 +452,9 @@ type sqlite3Driver struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *sqlite3Driver) Parse(driverName, dataSourceName string) (*core.Uri, error) {
|
func (p *sqlite3Driver) Parse(driverName, dataSourceName string) (*core.Uri, error) {
|
||||||
|
if strings.Contains(dataSourceName, "?") {
|
||||||
|
dataSourceName = dataSourceName[:strings.Index(dataSourceName, "?")]
|
||||||
|
}
|
||||||
|
|
||||||
return &core.Uri{DbType: core.SQLITE, DbName: dataSourceName}, nil
|
return &core.Uri{DbType: core.SQLITE, DbName: dataSourceName}, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue