|
|
@ -1400,6 +1400,21 @@ describe Table do
|
|
|
|
table.rows_counted.should == 7
|
|
|
|
table.rows_counted.should == 7
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "should not fail when the analyze is executed in update_table_geom_pg_stats and raises a PG::UndefinedColumn" do
|
|
|
|
|
|
|
|
delete_user_data @user
|
|
|
|
|
|
|
|
old_user_timeout = @user.user_timeout
|
|
|
|
|
|
|
|
old_user_db_timeout = @user.database_timeout
|
|
|
|
|
|
|
|
data_import = DataImport.create(user_id: @user.id,
|
|
|
|
|
|
|
|
data_source: fake_data_path('import_raster.tif.zip'))
|
|
|
|
|
|
|
|
data_import.run_import!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
table = Table.new(user_table: UserTable[data_import.table_id])
|
|
|
|
|
|
|
|
table.should_not be_nil, "Import failure: #{data_import.log}"
|
|
|
|
|
|
|
|
table.name.should match(/^import_raster/)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
table.update_table_geom_pg_stats
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
it "should not drop a table that exists when upload fails" do
|
|
|
|
it "should not drop a table that exists when upload fails" do
|
|
|
|
delete_user_data @user
|
|
|
|
delete_user_data @user
|
|
|
|
table = new_table :name => 'empty_file', :user_id => @user.id
|
|
|
|
table = new_table :name => 'empty_file', :user_id => @user.id
|
|
|
|