Git Product home page Git Product logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I've got an error with the repro.

db1=#  select * from xxx(3) as x(x int); 
ERROR:  invalid memory alloc request size 136899977152

We need to fix it anyway.

Original comment by [email protected] on 31 Jan 2012 at 10:23

from plv8.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
I think I've fixed it with ffc7b31e47482c31ffbf956007ff470f79c20732.
Please make sure it's what you expected.

Original comment by [email protected] on 14 Apr 2012 at 10:07

from plv8.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Yes, it's better, but not quite what we need yet. If the expected names don't 
match the actual field names, then an error should be thrown. Here's what 
plperl does:

andrew=# create or replace function xxx_perl(n int) returns setof record 
language plperl as 
    $x$ my $n = shift; for (my $i=0; $i<$n; $i++) { return_next({"n" => $i*2}) }; $x$;
CREATE FUNCTION
andrew=# select * from xxx_perl(3) as x(x int);
ERROR:  Perl hash contains nonexistent column "n" at line 1.
CONTEXT:  PL/Perl function "xxx_perl"
andrew=# 

Original comment by [email protected] on 23 Apr 2012 at 7:13

from plv8.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Partial fix committed. Now the number of sattributes is checked. Still to do is 
the name comparisons - the code is all there apart from the actual comparison.

We'll also need some regression tests for this.

Original comment by [email protected] on 5 Jul 2012 at 2:20

from plv8.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Fix completed, and regression tests added.

Original comment by [email protected] on 5 Jul 2012 at 4:10

  • Changed state: Fixed

from plv8.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.