Comments (6)
Thanks for the feedback.
Which Firebird version and which PostgreSQL version are you using here?
from firebird_fdw.
Unfortunately my query was only a count. When asking to get the rows i get a strange result:
column1 | column2 | column3
---------+---------+---------
1 | |
1 | |
The number of rows is correct, but the returned data isn't.
The foreign table is created with the options (query 'select column1, column2, column3 from tablename')
I've tried with different tables and got the same result.
I created a trivial table test(a int, b int) in firebird and the foreign table fb_test created with the query options exhibited the same issue.
That said when created with tablename option:
create foreign table fb_test (a int, b int) server firebird_server
options (table_name 'test');
the query returns the actual data.
This seems to be a different issue and not the result of my workaround.
To answer your question, here are the versions:
firebird: 2.5.2
postgresql: 9.3.4
from firebird_fdw.
Hmm, to be honest the 'query' option was a bit of an afterthought, I probably haven't tested it much. I'll have a look when I have a chance.
Oh yes, which OS(es) are you using?
from firebird_fdw.
Thanks for looking into this.
I'm using Debian Jessie.
Should i open a new issue for that one?
from firebird_fdw.
I've pushed a fix for tables defined using the 'query' option.
Not sure what's happening with the encoding, it works for me on OS X and OpenSUSE, but no time to look into it at the moment.
from firebird_fdw.
Thanks, I've just tested it with success.
from firebird_fdw.
Related Issues (20)
- Documentation not complete HOT 1
- IMPORT FOREIGN SCHEMA behaviour HOT 6
- Do not exist library/package to postgresql12-firebird_fdw HOT 3
- 1.2.0 build error HOT 1
- User survey - how and why do you you use firebird_fdw? And what features are missing? HOT 2
- Lost hierarchy chain in query HOT 10
- Undocumented feature or access error in firebird_version function HOT 2
- PostgreSQL 14 support HOT 4
- Change libfq submodule link HOT 1
- Cannot load extension into PostgreSQL 15 - undefined symbol: pg_atoi HOT 6
- Failed to Import Table from Foreign Schema HOT 13
- Foreign server name quoting during IMPORT FOREIGN SCHEMA HOT 1
- 1.3.0 build error on Fedora 37 (and warning on RHEL 9) HOT 3
- Firebird array support
- Cannot load extension into PostgreSQL 15 and 14 - libfq-0.5.0.so HOT 1
- PostgreSQL 16 support HOT 4
- UUID support HOT 4
- Question: Option to Force Conversion of Strings to a Specific Charset HOT 3
- limit rows returned HOT 3
- PostgreSQL 17 support 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 firebird_fdw.