Comments (6)
Can you provide a sql file that reproduces the problem?
from pgsanity.
@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.
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.
@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.
tldr; check your ecpg
version
from pgsanity.
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)
- Allow :colon variables HOT 7
- Always print filenames with error messages HOT 2
- Function with sql as language yields a false syntax error HOT 1
- SQL-chunking algorithm may treat invalid SQL as a comment HOT 7
- pgsanity reports error when .sql file is preceded with CREATE syntax HOT 2
- No error thrown for a wrong query HOT 5
- Any plans to have support of the Redshift syntax? HOT 2
- Adding pgsanity to FreeBSD ports HOT 2
- Windows support? HOT 5
- I do not know how exactly download pgsanity HOT 1
- Doesn't work with psql meta-commands & plpgsql syntax? HOT 1
- False positive on JSON operator '#>' and '#>>' HOT 3
- Trips up on field named `reference` HOT 2
- Centos 8 is missing ECPG? HOT 1
- Support for Python 3? HOT 1
- \gexec and other commands are flagged as errors
- Suport for Redsfhit
- Documentation for pre-commit hook needs updating
- Recurse over directories. `pgsanity .` like `jshint .` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgsanity.