fix test driver name

This commit is contained in:
Dan Hansen 2024-02-10 17:15:09 -08:00
parent 1c1684c687
commit f8d4d3382d
1 changed files with 2 additions and 2 deletions

View File

@ -1651,12 +1651,12 @@ func (lead *lead) Done() interface{} {
}
func TestWindowAggregatorRegistration_GenericReturnLead(t *testing.T) {
sql.Register("sqlite3_WindowAggregatorRegistration_GenericReturn", &SQLiteDriver{
sql.Register("sqlite3_WindowAggregatorRegistration_GenericReturnLead", &SQLiteDriver{
ConnectHook: func(conn *SQLiteConn) error {
return conn.RegisterAggregator("test_lead", newlead, true)
},
})
db, err := sql.Open("sqlite3_WindowAggregatorRegistration_GenericReturn", ":memory:")
db, err := sql.Open("sqlite3_WindowAggregatorRegistration_GenericReturnLead", ":memory:")
if err != nil {
t.Fatal("Failed to open database:", err)
}