Skip to content

Commit

Permalink
Make converting PG strings -> Parrot String PMCs work
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Apr 11, 2010
1 parent 6cbdf6b commit 3d523d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plparrot.c
Expand Up @@ -228,7 +228,7 @@ plparrot_push_pgdatatype_pmc(Parrot_PMC func_args, FunctionCallInfo fcinfo, int
case CHAROID:
case VARCHAROID:
case BPCHAROID:
Parrot_PMC_push_string(interp, func_args, create_string(PG_GETARG_CSTRING(i)));
Parrot_PMC_push_string(interp, func_args, create_string(TextDatum2String(PG_GETARG_DATUM(i))));
break;
case INT2OID:
Parrot_PMC_push_integer(interp, func_args, (Parrot_Int) PG_GETARG_INT16(i));
Expand Down Expand Up @@ -301,7 +301,6 @@ plparrot_make_sausage(Parrot_Interp interp, Parrot_PMC pmc, FunctionCallInfo fci
{
char *str;
plparrot_proc_desc *prodesc;
Parrot_PMC inspect;
Parrot_String s;
HeapTuple procTup, typeTup;
Form_pg_proc procStruct;
Expand Down

0 comments on commit 3d523d8

Please sign in to comment.