search for: removedconnect

Displaying 3 results from an estimated 3 matches for "removedconnect".

Did you mean: remote_connect
2006 Jan 13
1
How to disconnect to a database????
...bleAs.establish_connection(:adapter => "postgresql", :host => "1.2.3.4", :port => 5432, :database => "gendb", :username => "dbuser", :password => "dbuser") @connected1 = GenTableAs.connection() @removedConnection = GenTableAs.remove_connection() @connected2 = GenTableAs.connection() # should be nil here obj1 = GenTableAs.new obj1["colaa"] = 100 obj1["colab"] = "100" obj1.save # should have raised exception or error here end end #################################...
2006 Jan 11
0
Connection problem with a generic-runtime-built ActiveRecord::Base
...ectToPSQLDB("1.2.3.4", 5432, "gendb", "dbuser" ,"dbpwd" ) # test create genAClass = GenActRec.buildNewTableClass("GenTableAs","gen_table_as") @name = genAClass.name obj1 = genAClass.new @col1 = obj1.class.column_names() @removedConnection = GenActRec.closeConnection() # should be an error @col2 = obj1.class.column_names() end end Basically, @col2 should be an error, because the connection should be closed, but I can still obtain results. it is the same result as @col1, it means the connection doesn''t close.......
2006 Jan 05
7
HOWTO: Combine fields from 2 two tables in 1 object
Hi all, For a dropdownlist (showing "Company - FirstName Lastname'') I want to fill an object @project_contacts with "Name" from table Companies and "Firstname" and "Lastname" from table contacts. Any idea? Regards, Gerard. -- "Who cares if it doesn''t do anything? It was made with our new Triple-Iso-Bifurcated-Krypton-Gate-MOS