pllua / pllua-deprecated

[DEPRECATED] This repository is no longer maintained. Please follow https://github.com/pllua/pllua
197 stars 16 forks source link

Oid resolve of array datatype in prepared statements #45

Open bjne opened 7 years ago

bjne commented 7 years ago

It is currently not possible to use for example "text[]" as a datatype in prepared statements.

HeapTuple typetup = typenameType(NULL, makeTypeNameFromNameList(namelist), NULL);

exits with: "ERROR: type "text[]" does not exist"

It seems like array types should be converted from "text[]" to "_text" before sending to luaP_gettypeoid or actually, luaP_gettypeoid should be replaced more or less by parseTypeString()