what do you expect this to return? qry = queryNew...
# lucee
z
what do you expect this to return? qry = queryNew( 'col', 'varchar', [['foo'],['bar']] ); var actual = QueryExecute( sql = " SELECT rand(3) rand, rand() rand2, rand() rand3 FROM qry", options = { dbtype: 'query' } );
d
As I didn't think
rand()
was an ANSI function, I would expect an error. (I know it's supported in a large number of database though.)
✅ 1
But given the way SQL works, I'd expect 3 columns with random values and one row for each row in the
qry
recordset.
b
@dswitzer That was slightly a trick question. The first rand() call has a seed passed to it 🙂