Vanillaxi opened a new issue, #1172:
URL: https://github.com/apache/incubator-seata-go/issues/1172

   # Description
   当前 `pkg/datasource/sql/driver.go` 中的 `getOpenConnectorProxy` MySQL 专用缓存注册与 
descriptor 缓存注册重复,后一次会覆盖前一次的结果,这里只需保留 descriptor 缓存注册即可
   
   ```
   if dbType == types.DBTypeMySQL {
       cfg, err := mysql.ParseDSN(dataSourceName)
       if err != nil {
           return nil, fmt.Errorf("parse mysql dsn: %w", err)
       }
       datasource.RegisterTableCache(
           types.DBTypeMySQL,
           mysql2.NewTableMetaInstance(db, cfg),
       )
   }
   
   datasource.RegisterTableCache(
       dbType,
       d.descriptor.newTableMetaCache(db, dbName),
   )
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to