# Ruby firebird

**URL:** <https://rubytalk.org/t/ruby-firebird/9596>\
**Category:** ruby-talk\
**Created:** [7 January 2004 18:44 UTC](https://rubytalk.org/t/ruby-firebird/9596 "2004-01-07T18:44:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giuseppe\_Massa](https://avatars.discourse-cdn.com/v4/letter/g/ac8455/32.png) [@Giuseppe\_Massa](https://rubytalk.org/u/Giuseppe_Massa)\
**Post date:** [7 January 2004 18:44 UTC](https://rubytalk.org/t/ruby-firebird/9596/1 "2004-01-07T18:44:12Z")

</div>

Hi everybody, I try to run mod-Interbase0.03 with Firebird1.0.2.908, on Linux  
Mandrake 9.1.  
I installed ruby 1.8.0 in /usr/src and interbase-0.03 in the same directory.  
Firebird is in /opt/interbase! The compiling phase seems good!

Now I create a database in /home/joe/test.gdb and I try to test with simple  
script (prova2.rb):

> **···**
>
> * * *
> 
> ## #!/usr/local/bin/ruby require "interbase" conn = InterBase::connect('localhost:/home/joe/test.gdb, ‘sysdba’,‘masterkey’) conn.execute(‘select \* from my\_table’) conn.commit conn.close
> 
> and receive from shell:
> 
> [root@hostnbook joe]# ruby prova2.rb  
> prova2.rb:4:in `execute’: An error was found in the application program input  
> parameters for the SQL statement. (InterBase::Error)  
> from prova2.rb:4
> 
> I can’t understand the mistake! My SQL seems good. Can you help me? Is there  
> anybody using mod-Interbase0.03 with Firebird Database?  
> Greetings.  
> Giuseppe Massa

---

<div class="post-metadata">

**Author:** ![Nikolay\_Ponomarenko1](https://avatars.discourse-cdn.com/v4/letter/n/c67d28/32.png) [@Nikolay\_Ponomarenko1](https://rubytalk.org/u/Nikolay_Ponomarenko1)\
**Post date:** [8 January 2004 07:30 UTC](https://rubytalk.org/t/ruby-firebird/9596/2 "2004-01-08T07:30:37Z")

</div>

Hello giuseppe,

> #!/usr/local/bin/ruby  
> require “interbase”  
> conn = InterBase::connect('localhost:/home/joe/test.gdb, ‘sysdba’,‘masterkey’)

conn = InterBase::connect(‘localhost:/home/joe/test.gdb’, ‘sysdba’,‘masterkey’)

> conn.execute(‘select \* from my\_table’)  
> conn.commit  
> conn.close

> I can’t understand the mistake! My SQL seems good. Can you help me? Is there  
> anybody using mod-Interbase0.03 with Firebird Database?

I’ve. Everything is ok.

> **···**
>
> –  
> Nikolay Ponomarenko

---

<div class="post-metadata">

**Author:** ![Giuseppe\_Massa](https://avatars.discourse-cdn.com/v4/letter/g/ac8455/32.png) [@Giuseppe\_Massa](https://rubytalk.org/u/Giuseppe_Massa)\
**Post date:** [8 January 2004 09:56 UTC](https://rubytalk.org/t/ruby-firebird/9596/3 "2004-01-08T09:56:01Z")

</div>

Hi Nikolay unfortunately this line was wrong only in my last post!  
I have problems with Firebird access from mod-Interbase0.03.  
Please can you indicate the Firebird, ruby & mod-Interbase version you use?  
Thanks  
Giuseppe

> **···**
>
> At 08.30 08/01/2004, you wrote:
> 
> > Hello giuseppe,
> > 
> > conn = InterBase::connect(‘localhost:/home/joe/test.gdb’,  
> > ‘sysdba’,‘masterkey’)
> > 
> > …  
> > I’ve. Everything is ok.
> > 
> > –  
> > Nikolay Ponomarenko
