Closed trailsandtribulations closed 9 years ago
in the parameterized query insert into place_type( plt_id, name, category, spr_plt_id, descr ) values( $1, $2, $3, $4, $5 ) returning *
insert into place_type( plt_id, name, category, spr_plt_id, descr )
values( $1, $2, $3, $4, $5 ) returning *
with the array
[ 5, 0, 'wat', 'what', null ]
I get the error
when I substitute 1 and 'something' for 0 and null, it works.
this seems to be pretty major. am I missing something obvious? (hope so!)
never mind
was using args.filter when I needed args.map
args.filter
args.map
in the parameterized query
insert into place_type( plt_id, name, category, spr_plt_id, descr )
values( $1, $2, $3, $4, $5 ) returning *
with the array
[ 5, 0, 'wat', 'what', null ]
I get the error
when I substitute 1 and 'something' for 0 and null, it works.
this seems to be pretty major. am I missing something obvious? (hope so!)