CurtTilmes / perl6-dbmysql

DB::MySQL
2 stars 3 forks source link

Wrong number of params on insert #8

Closed tony-o closed 4 years ago

tony-o commented 4 years ago
use DB::MySQL;
my DB::MySQL $x .=new(:user<xoos>);
$x.query("insert into customers (name) values (?)", "hello world");

is dying with:

Wrong number of params
  in method execute at /home/tonyo/downloads/.rakudobrew/moar-blead-master/install/share/perl6/site/sources/B7FEB638A8625E3D92CB2064EB9B456EA2C69806 (DB::MySQL::Statement) line 30
  in method query at /home/tonyo/downloads/.rakudobrew/moar-blead-master/install/share/perl6/site/sources/31DAC65B428E3BE7CAFC630257CA1C4190EE6AC3 (DB::Connection) line 50
  in method query at /home/tonyo/downloads/.rakudobrew/moar-blead-master/install/share/perl6/site/sources/A79D993708E8048217C956D0437DC98D02AF9B83 (DB) line 23
  in block <unit> at -e line 1

I'm going to debug later when I have a little more time to dedicate to this.

tony-o commented 4 years ago

Problem with the docker image I was using, disregard.