File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -312,17 +312,6 @@ func (c *baseClient) initConn(ctx context.Context, cn *pool.Conn) error {
312
312
// difficult to rely on error strings to determine all results.
313
313
return err
314
314
}
315
- if ! c .opt .DisableIndentity {
316
- libName := ""
317
- libVer := Version ()
318
- if c .opt .IdentitySuffix != "" {
319
- libName = c .opt .IdentitySuffix
320
- }
321
- libInfo := LibraryInfo {LibName : & libName }
322
- conn .ClientSetInfo (ctx , libInfo )
323
- libInfo = LibraryInfo {LibVer : & libVer }
324
- conn .ClientSetInfo (ctx , libInfo )
325
- }
326
315
_ , err := conn .Pipelined (ctx , func (pipe Pipeliner ) error {
327
316
if ! auth && password != "" {
328
317
if username != "" {
@@ -344,6 +333,18 @@ func (c *baseClient) initConn(ctx context.Context, cn *pool.Conn) error {
344
333
pipe .ClientSetName (ctx , c .opt .ClientName )
345
334
}
346
335
336
+ if ! c .opt .DisableIndentity {
337
+ libName := ""
338
+ libVer := Version ()
339
+ if c .opt .IdentitySuffix != "" {
340
+ libName = c .opt .IdentitySuffix
341
+ }
342
+ libInfo := LibraryInfo {LibName : & libName }
343
+ pipe .ClientSetInfo (ctx , libInfo )
344
+ libInfo = LibraryInfo {LibVer : & libVer }
345
+ pipe .ClientSetInfo (ctx , libInfo )
346
+ }
347
+
347
348
return nil
348
349
})
349
350
if err != nil {
You can’t perform that action at this time.
0 commit comments