qb icon indicating copy to clipboard operation
qb copied to clipboard

QB doesn't like returntype = "struct"

Open Daemach opened this issue 3 years ago • 3 comments

Doesn't work:
// this.auditTables = qb.from('tables').get( options={ datasource: 'veritiAudit', returntype: 'struct', columnkey: 'name', cachedwithin: createTimespan(0,2,0,0) } )

Works:
this.auditTables = queryExecute("select * from tables",{},{ datasource: 'veritiAudit', returntype: 'struct', columnkey: 'name', cachedwithin: createTimespan(0,2,0,0) })

Daemach avatar Jun 24 '22 23:06 Daemach

I'm curious, does it work if you set the return format to query or this closure?

qb.setReturnFormat( function( q ) { return q; } );

elpete avatar Jan 11 '23 17:01 elpete

No luck.

image

Daemach avatar Mar 14 '23 13:03 Daemach

I would like to beg again for qb to support returntype: struct. I use it quite often, and having to do this is inelegant.

Image

Daemach avatar Oct 21 '25 21:10 Daemach