GithubHelp home page GithubHelp logo

ecpg error on new lines about pgsanity HOT 6 CLOSED

yonatan-blue avatar yonatan-blue commented on August 25, 2024
ecpg error on new lines

from pgsanity.

Comments (6)

markdrago avatar markdrago commented on August 25, 2024

Can you provide a sql file that reproduces the problem?

from pgsanity.

yonatan-blue avatar yonatan-blue commented on August 25, 2024

@markdrago
following is the string I wanted to check, but, I tried reproducing and it only reproduce on python 3.4.3 and not on python 3.5.2.

CREATE OR REPLACE FUNCTION one_more_function_name(var_name TEXT) RETURNS INTEGER
AS $$
INSERT INTO another_function (var_name)
VALUES (var_name)
RETURNING id;
$$
LANGUAGE SQL;

CREATE OR REPLACE FUNCTION function_name(var_name TEXT) RETURNS INTEGER
AS $$
SELECT function_name(var_name)
$$
LANGUAGE SQL;

from pgsanity.

markdrago avatar markdrago commented on August 25, 2024

I tried reproducing this and, as you said, it works in python 3.5.2. It also works with python 2.7.12. To be honest, I'm tempted to not make any changes. While I can't back it up, I think the munmap_chunk error is more indicative of a problem in ecpg than in pgsanity. I'd rather not work around it - especially if it works in the latest versions of python2 and python3.

Is it possible that your two tests are using different versions of ecpg as well? Was the python 3.4.3 test and the 3.5.2 test executed on the same machine with the same ecpg?

from pgsanity.

yonatan-blue avatar yonatan-blue commented on August 25, 2024

@markdrago yes, you are right:
I only got the error with:

ecpg (PostgreSQL 9.6.1) 4.12.0  # with python 3.4.3

and with:

ecpg (PostgreSQL 9.5.5) 4.11.0  # with python 3.5.2

I did not get the error.

  • notice that it is the newer version of ecpg that is supposedly broken :)

any how I'm good...

@markdrago thanks for your replay

from pgsanity.

yonatan-blue avatar yonatan-blue commented on August 25, 2024

tldr; check your ecpg version

from pgsanity.

markdrago avatar markdrago commented on August 25, 2024

I'm running the same version of ecpg that gave you a problem:

ecpg (PostgreSQL 9.6.1) 4.12.0

I think we'll just hold tight for now and see if anyone else is able to reproduce.

from pgsanity.

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.