feat: prepare_stmt support ping
This commit is contained in:
		
							parent
							
								
									26195e6d16
								
							
						
					
					
						commit
						8299d65d24
					
				| @ -242,3 +242,11 @@ func (tx *PreparedStmtTX) QueryRowContext(ctx context.Context, query string, arg | ||||
| 	} | ||||
| 	return &sql.Row{} | ||||
| } | ||||
| 
 | ||||
| func (tx *PreparedStmtDB) Ping() error { | ||||
| 	conn, err := tx.GetDBConn() | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	return conn.Ping() | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 philhuan
						philhuan