Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 62587
BY: Francesco Pellegrini (kranz)
DATE: 2008-11-28 22:42
SUBJECT: RE: Problems with connection to iseries DB

 

Praveen,

I do realize that the line I pasted in debug mode is not the one I wrote in the first post, but rather this one:

connection = IBM_DB::connect( database, username, password, conn_options )


If i try to paste the other connect statement I get a syntax error. I did delete all the backslashes and used the following string:

connection = IBM_DB::connect "DRIVER={IBM DB2 ODBC DRIVER};DATABASE=#{database};HOSTNAME=#{host};PORT=#{port};PROTOCOL=TCPIP;UID=#{username};PWD=#{password};", '', '', conn_options

and immediately after pressing enter i get this error:

SyntaxError Exception: compile error
/usr/local/lib/ruby/gems/1.8/gems/ibm_db-0.9.3/lib/active_record/connection_adapters/ibm_db_adapter.rb:162: unterminated string meets end of file



Thread View

Thread Author Date
Problems with connection to iseries DBFrancesco Pellegrini2008-11-28 10:39
      RE: Problems with connection to iseries DBPraveen Devarao2008-11-28 12:35
            RE: Problems with connection to iseries DBFrancesco Pellegrini2008-11-28 22:36
            RE: Problems with connection to iseries DBFrancesco Pellegrini2008-11-28 22:42
                  RE: Problems with connection to iseries DBPraveen Devarao2008-11-30 16:01
                        RE: Problems with connection to iseries DBFrancesco Pellegrini2008-12-01 08:19
                              RE: Problems with connection to iseries DBPraveen Devarao2008-12-01 13:19
                                    RE: Problems with connection to iseries DBFrancesco Pellegrini2008-12-01 15:38
                                          RE: Problems with connection to iseries DBPraveen Devarao2008-12-02 06:34
                                                RE: Problems with connection to iseries DBPraveen Devarao2008-12-02 07:05
                                                      RE: Problems with connection to iseries DBFrancesco Pellegrini2008-12-02 09:12
                                                            RE: Problems with connection to iseries DBFrancesco Pellegrini2008-12-02 09:26
                                                            RE: Problems with connection to iseries DBPraveen Devarao2008-12-02 10:07
                                                                  RE: Problems with connection to iseries DBFrancesco Pellegrini2008-12-02 10:23
                                                                  RE: Problems with connection to iseries DBPraveen Devarao2008-12-02 10:40
                                                                        RE: Problems with connection to iseries DBFrancesco Pellegrini2008-12-02 12:21
                                                                              RE: Problems with connection to iseries DBPraveen Devarao2008-12-02 12:36

Post a followup to this message