Displaying 1 result from an estimated 1 matches for "table_no_1".
Did you mean:
table_no_42
2006 Jan 26
0
If you want to disconnect a database properly, there is the code:)!!!
...GenTableAs.establish_connection(:adapter =>
"postgresql",
:host => "1.2.3.4",
:port => 5432,
:database => "db1",
:username => "dbuser1",
:password => "dbuser1")
GenTableAs.set_table_name ''table_no_1''
GenTableAs.reset_column_information()
obj1 = GenTableAs.new
@col1 = obj1.class.column_names()
obj1["colaa"] = 123
obj1["colab"] = "123"
obj1.save
obj1 = nil
GenTableAs.clear_connection # here we disconnect the
connection
# connection...