예제 #1
0
파일: statement.go 프로젝트: sabzil/cubrid
func (s *cubridStmt) Close() error {
	err := gci.Close_req_handle(s.req)
	if err == 0 {
		return nil
	}
	return fmt.Errorf("cci_close_req_handle err : %d", err)
}
예제 #2
0
파일: rows.go 프로젝트: sabzil/cubrid
func (rows *cubridRows) Close() error {
	var res int

	res = gci.Close_req_handle(rows.s.req)
	if res < 0 {
		return fmt.Errorf("close_req_handle err : %d", res)
	}

	return nil
}