Git Product home page Git Product logo

Comments (6)

ibarwick avatar ibarwick commented on August 15, 2024

Thanks for the feedback.

Which Firebird version and which PostgreSQL version are you using here?

from firebird_fdw.

xaba avatar xaba commented on August 15, 2024

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.

ibarwick avatar ibarwick commented on August 15, 2024

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.

xaba avatar xaba commented on August 15, 2024

Thanks for looking into this.
I'm using Debian Jessie.
Should i open a new issue for that one?

from firebird_fdw.

ibarwick avatar ibarwick commented on August 15, 2024

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.

xaba avatar xaba commented on August 15, 2024

Thanks, I've just tested it with success.

from firebird_fdw.

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.