2
0
This commit is contained in:
Jack Christensen
2017-02-11 14:59:16 -06:00
parent f0dfe4fe89
commit e4f9108e82
7 changed files with 82 additions and 76 deletions
+4
View File
@@ -48,6 +48,10 @@ func fpInt64Arg(n int64) fpArg {
}
func (f *fastpath) Call(oid Oid, args []fpArg) (res []byte, err error) {
if err := f.cn.ensureConnectionReadyForQuery(); err != nil {
return nil, err
}
wbuf := newWriteBuf(f.cn, 'F') // function call
wbuf.WriteInt32(int32(oid)) // function object id
wbuf.WriteInt16(1) // # of argument format codes