fix
This commit is contained in:
parent
da93ed0f1e
commit
4279af9ea0
4
obj.go
4
obj.go
@ -25,7 +25,7 @@ var (
|
|||||||
func codeObjTypeId(intlId string) (int64, error) {
|
func codeObjTypeId(intlId string) (int64, error) {
|
||||||
var objTypeId int64
|
var objTypeId int64
|
||||||
|
|
||||||
stmt, err := db.Prepare(`SELECT c.id FROM code_obj_type c WHERE o.intl_id = ?`)
|
stmt, err := db.Prepare(`SELECT c.id FROM code_obj_type c WHERE c.intl_id = ?`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
@ -43,7 +43,7 @@ func codeObjTypeId(intlId string) (int64, error) {
|
|||||||
func codeObjSubTypeId(intlId string) (int64, error) {
|
func codeObjSubTypeId(intlId string) (int64, error) {
|
||||||
var objSubTypeId int64
|
var objSubTypeId int64
|
||||||
|
|
||||||
stmt, err := db.Prepare(`SELECT c.id FROM code_obj_sub_type c WHERE o.intl_id = ?`)
|
stmt, err := db.Prepare(`SELECT c.id FROM code_obj_sub_type c WHERE c.intl_id = ?`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user