Closed bat22 closed 5 years ago
In the beginning of function variable gds_code is declared. But in clause case n == isc_arg_gds a new variable is created and variable declared before not updated.
func (p *wireProtocol) _parse_status_vector() (*list.List, int, string, error) { sql_code := 0 gds_code := 0 gds_codes := list.New() num_arg := 0 message := "" ... case n == isc_arg_gds: b, err = p.recvPackets(4) gds_code := int(bytes_to_bint32(b)) if gds_code != 0 { gds_codes.PushBack(gds_code) message += errmsgs[gds_code] num_arg = 0 } ...
Thanks I understand now.
In the beginning of function variable gds_code is declared. But in clause case n == isc_arg_gds a new variable is created and variable declared before not updated.