qb
qb copied to clipboard
QB doesn't like returntype = "struct"
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) })
I'm curious, does it work if you set the return format to query or this closure?
qb.setReturnFormat( function( q ) { return q; } );
No luck.

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