Comments (1)
It would be easier if you were using ActiveRecord OR fb, rather than something in between. If you're not making use of ActiveRecord, either connect directly using fb's API or grab raw_connection from ActiveRecord::Base.connection.
fb's connection's execute method either returns a cursor or takes a block with a cursor as a parameter. Basically, you need to program against the API as it exists, and not how you're guessing it is.
If you just want results, raw_connection.query will give you them. Given that execute returns a cursor, you should close that cursor when you're done iterating it.
from fb.
Related Issues (20)
- Fb::Error: A transaction has been already started: begin transaction HOT 1
- The new BOOLEAN datatype doesn't work in fb... HOT 7
- Why any select in WRITE transactions? HOT 8
- dyld: lazy symbol binding failed HOT 10
- Make it work with Firebird 3... HOT 6
- I can't install fb on Fedora 28 HOT 3
- Problems connecting to firebird 3 HOT 8
- Insert with return clause broken in 0.9.0 HOT 3
- Error when installing on Windows 10
- Annoying warning with ruby 2.6.3 HOT 1
- Ruby 2.0.0(x64) Segmentation fault HOT 5
- How to create a rails Model HOT 1
- Statement loses parameters HOT 8
- Cannot build on Mac os x Catalina HOT 2
- Add support for returning values... HOT 3
- Can't install fb gem in ruby windows 64bits... HOT 3
- Cannot be installed in Ruby 3.2... HOT 3
- fb.c:41:10: fatal error: ibase.h: No such file or directory HOT 3
- Error on Ruby 3.2.2: "error: โrb_cDataโ undeclared" HOT 3
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 fb.