it('replaces named parameters with the passed object and ignores casts',function(){
returnexpect(this.sequelize.query('select :one as foo, :two as bar, \'1000\'::integer as baz',{raw:true,replacements:{one:1,two:2}}).get(0))
returnexpect(this.sequelize.query('select :one as foo, :two as bar, \'1000\'::integer as baz',{raw:true,replacements:{one:1,two:2}}).then(obj=>obj[0]))
returnexpect(this.sequelize.query('WITH RECURSIVE t(n) AS ( VALUES (1) UNION ALL SELECT n+1 FROM t WHERE n < 100) SELECT sum(n) FROM t').get(0))
returnexpect(this.sequelize.query('WITH RECURSIVE t(n) AS ( VALUES (1) UNION ALL SELECT n+1 FROM t WHERE n < 100) SELECT sum(n) FROM t').then(obj=>obj[0]))