search for: dbuser2

Displaying 1 result from an estimated 1 matches for "dbuser2".

Did you mean: dbuser
2006 Jan 26
0
If you want to disconnect a database properly, there is the code:)!!!
...s.clear_connection # here we disconnect the connection # connection to a new database GenTableAs.establish_connection(:adapter => "postgresql", :host => "9.8.7.5", :port => 5432, :database => "db2", :username => "dbuser2", :password => "dbuser2") GenTableAs.set_table_name "table_no_42" GenTableAs.reset_column_information() obj1 = GenTableAs.new @col2 = obj1.class.column_names() obj1["col12"] = 456 obj1["col34"] = "789" obj1.save...