{"record":{"id":"78cd36919d9c4f23","repo":"beego/beego","slug":"rawseter-queryrow-all-args-must-be-use-ptr","errorCode":null,"errorMessage":"<RawSeter.QueryRow> All args must be use ptr","messagePattern":"<RawSeter\\.QueryRow> All args must be use ptr","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"client/orm/orm_raw.go","lineNumber":300,"sourceCode":"\t\tnInds[i] = nInd\n\t}\n}\n\n// query data and map to container\nfunc (o *rawSet) QueryRow(containers ...interface{}) error {\n\tvar (\n\t\trefs  = make([]interface{}, 0, len(containers))\n\t\tsInds []reflect.Value\n\t\teTyps []reflect.Type\n\t\tsMi   *models.ModelInfo\n\t)\n\tstructMode := false\n\tfor _, container := range containers {\n\t\tval := reflect.ValueOf(container)\n\t\tind := reflect.Indirect(val)\n\n\t\tif val.Kind() != reflect.Ptr {\n\t\t\tpanic(errors.New(\"<RawSeter.QueryRow> All args must be use ptr\"))\n\t\t}\n\n\t\tetyp := ind.Type()\n\t\ttyp := etyp\n\t\tif typ.Kind() == reflect.Ptr {\n\t\t\ttyp = typ.Elem()\n\t\t}\n\n\t\tsInds = append(sInds, ind)\n\t\teTyps = append(eTyps, etyp)\n\n\t\tif typ.Kind() == reflect.Struct && typ.String() != \"time.Time\" {\n\t\t\tif len(containers) > 1 {\n\t\t\t\tpanic(errors.New(\"<RawSeter.QueryRow> now support one struct only. see #384\"))\n\t\t\t}\n\n\t\t\tstructMode = true\n\t\t\tfn := models.GetFullName(typ)","sourceCodeStart":282,"sourceCodeEnd":318,"githubUrl":"https://github.com/beego/beego/blob/939cfde380bb9f15844ad633b84f037f7da21584/client/orm/orm_raw.go#L282-L318","documentation":"Error \"<RawSeter.QueryRow> All args must be use ptr\" thrown in beego/beego.","triggerScenarios":"Thrown at client/orm/orm_raw.go:300 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"939cfde380bb9f15844ad633b84f037f7da21584","analyzedAt":"2026-08-15T17:22:06.535Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}