clkao / plv8js-migrated

Automatically exported from code.google.com/p/plv8js
Other
0 stars 0 forks source link

2d arrays get flattened when passed in to js #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a function with an argument like "data numeric[][]"
2. pass in '{{1,2}}' 
3. expect data[1][1] to return 1 but get null, data.length returns 2, would 
expect to get 1

Original issue reported on code.google.com by hubrix on 15 Apr 2014 at 5:22

GoogleCodeExporter commented 9 years ago
Postgres' 2D array is kind of weird state (e.g. the dimension information is 
embedded in Datum not type).  Therefore it's designed plv8 uses only 1d array.  
Is there particular needs?

Original comment by umi.tan...@gmail.com on 25 Apr 2014 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by umi.tan...@gmail.com on 20 May 2014 at 6:10