acts_as_nested_interval 0.1.1 → 0.2.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_nested_interval.rb +42 -41
- data/lib/acts_as_nested_interval/callbacks.rb +42 -0
- data/lib/acts_as_nested_interval/class_methods.rb +2 -2
- data/lib/acts_as_nested_interval/instance_methods.rb +13 -33
- data/lib/acts_as_nested_interval/version.rb +1 -1
- data/test/dummy/README.rdoc +15 -248
- data/test/dummy/Rakefile +1 -2
- data/test/dummy/app/assets/javascripts/application.js +3 -5
- data/test/dummy/app/assets/stylesheets/application.css +6 -4
- data/test/dummy/app/controllers/application_controller.rb +3 -1
- data/test/dummy/app/models/region.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +2 -2
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +1 -1
- data/test/dummy/config/application.rb +1 -34
- data/test/dummy/config/boot.rb +4 -9
- data/test/dummy/config/database.yml +1 -1
- data/test/dummy/config/environment.rb +3 -3
- data/test/dummy/config/environments/development.rb +19 -19
- data/test/dummy/config/environments/production.rb +44 -28
- data/test/dummy/config/environments/test.rb +17 -15
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +6 -5
- data/test/dummy/config/initializers/mime_types.rb +0 -1
- data/test/dummy/config/initializers/session_store.rb +1 -6
- data/test/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/test/dummy/config/locales/en.yml +20 -2
- data/test/dummy/config/routes.rb +23 -25
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/schema.rb +14 -11
- data/test/dummy/log/development.log +17 -0
- data/test/dummy/log/test.log +2833 -0
- data/test/dummy/public/404.html +54 -13
- data/test/dummy/public/422.html +54 -13
- data/test/dummy/public/500.html +53 -12
- data/test/dummy_bak/Gemfile +4 -0
- data/test/dummy_bak/Gemfile.lock +92 -0
- data/test/dummy_bak/README.rdoc +261 -0
- data/test/dummy_bak/Rakefile +7 -0
- data/test/dummy_bak/app/assets/javascripts/application.js +15 -0
- data/test/dummy_bak/app/assets/stylesheets/application.css +13 -0
- data/test/dummy_bak/app/controllers/application_controller.rb +3 -0
- data/test/dummy_bak/app/helpers/application_helper.rb +2 -0
- data/test/dummy_bak/app/models/region.rb +5 -0
- data/test/dummy_bak/app/views/layouts/application.html.erb +14 -0
- data/test/dummy_bak/bin/bundle +3 -0
- data/test/dummy_bak/bin/rails +4 -0
- data/test/dummy_bak/bin/rake +4 -0
- data/test/dummy_bak/config.ru +4 -0
- data/test/dummy_bak/config/application.rb +23 -0
- data/test/dummy_bak/config/boot.rb +4 -0
- data/test/dummy_bak/config/database.yml +31 -0
- data/test/dummy_bak/config/environment.rb +5 -0
- data/test/dummy_bak/config/environments/development.rb +37 -0
- data/test/dummy_bak/config/environments/production.rb +83 -0
- data/test/dummy_bak/config/environments/test.rb +39 -0
- data/test/dummy_bak/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy_bak/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy_bak/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy_bak/config/initializers/inflections.rb +16 -0
- data/test/dummy_bak/config/initializers/mime_types.rb +4 -0
- data/test/{dummy → dummy_bak}/config/initializers/secret_token.rb +0 -0
- data/test/dummy_bak/config/initializers/session_store.rb +3 -0
- data/test/dummy_bak/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy_bak/config/locales/en.yml +23 -0
- data/test/dummy_bak/config/routes.rb +56 -0
- data/test/dummy_bak/config/secrets.yml +22 -0
- data/test/dummy_bak/db/development.sqlite3 +0 -0
- data/test/dummy_bak/db/migrate/20120302143528_create_regions.rb +15 -0
- data/test/dummy_bak/db/migrate/20121004204252_change_interval_precision.rb +6 -0
- data/test/dummy_bak/db/schema.rb +28 -0
- data/test/dummy_bak/log/development.log +229 -0
- data/test/dummy_bak/log/test.log +0 -0
- data/test/dummy_bak/public/404.html +26 -0
- data/test/dummy_bak/public/422.html +26 -0
- data/test/dummy_bak/public/500.html +25 -0
- data/test/dummy_bak/public/favicon.ico +0 -0
- data/test/{dummy → dummy_bak}/script/rails +0 -0
- data/test/{dummy → dummy_bak}/test/fixtures/regions.yml +0 -0
- data/test/{dummy → dummy_bak}/test/unit/region_test.rb +0 -0
- data/test/test_helper.rb +5 -0
- metadata +112 -55
@@ -1,8 +1,3 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
# Use the database for sessions instead of the cookie-based default,
|
6
|
-
# which shouldn't be used to store highly confidential information
|
7
|
-
# (create the session table with "rails generate session_migration")
|
8
|
-
# Dummy::Application.config.session_store :active_record_store
|
3
|
+
Rails.application.config.session_store :cookie_store, key: '_dummy_session'
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
|
-
|
2
|
+
|
3
3
|
# This file contains settings for ActionController::ParamsWrapper which
|
4
4
|
# is enabled by default.
|
5
5
|
|
6
6
|
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
7
|
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format: [:json]
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
9
|
end
|
10
10
|
|
11
|
-
#
|
12
|
-
ActiveSupport.on_load(:active_record) do
|
13
|
-
self.include_root_in_json =
|
14
|
-
end
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -1,5 +1,23 @@
|
|
1
|
-
#
|
2
|
-
#
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
3
21
|
|
4
22
|
en:
|
5
23
|
hello: "Hello world"
|
data/test/dummy/config/routes.rb
CHANGED
@@ -1,19 +1,20 @@
|
|
1
|
-
|
2
|
-
# The priority is based upon order of creation:
|
3
|
-
#
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
+
# See how all your routes lay out with "rake routes".
|
4
4
|
|
5
|
-
#
|
6
|
-
#
|
7
|
-
|
5
|
+
# You can have the root of your site routed with "root"
|
6
|
+
# root 'welcome#index'
|
7
|
+
|
8
|
+
# Example of regular route:
|
9
|
+
# get 'products/:id' => 'catalog#view'
|
8
10
|
|
9
|
-
#
|
10
|
-
#
|
11
|
-
# This route can be invoked with purchase_url(:id => product.id)
|
11
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
12
13
|
|
13
|
-
#
|
14
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
14
15
|
# resources :products
|
15
16
|
|
16
|
-
#
|
17
|
+
# Example resource route with options:
|
17
18
|
# resources :products do
|
18
19
|
# member do
|
19
20
|
# get 'short'
|
@@ -25,34 +26,31 @@ Dummy::Application.routes.draw do
|
|
25
26
|
# end
|
26
27
|
# end
|
27
28
|
|
28
|
-
#
|
29
|
+
# Example resource route with sub-resources:
|
29
30
|
# resources :products do
|
30
31
|
# resources :comments, :sales
|
31
32
|
# resource :seller
|
32
33
|
# end
|
33
34
|
|
34
|
-
#
|
35
|
+
# Example resource route with more complex sub-resources:
|
35
36
|
# resources :products do
|
36
37
|
# resources :comments
|
37
38
|
# resources :sales do
|
38
|
-
# get 'recent', :
|
39
|
+
# get 'recent', on: :collection
|
39
40
|
# end
|
40
41
|
# end
|
41
42
|
|
42
|
-
#
|
43
|
+
# Example resource route with concerns:
|
44
|
+
# concern :toggleable do
|
45
|
+
# post 'toggle'
|
46
|
+
# end
|
47
|
+
# resources :posts, concerns: :toggleable
|
48
|
+
# resources :photos, concerns: :toggleable
|
49
|
+
|
50
|
+
# Example resource route within a namespace:
|
43
51
|
# namespace :admin do
|
44
52
|
# # Directs /admin/products/* to Admin::ProductsController
|
45
53
|
# # (app/controllers/admin/products_controller.rb)
|
46
54
|
# resources :products
|
47
55
|
# end
|
48
|
-
|
49
|
-
# You can have the root of your site routed with "root"
|
50
|
-
# just remember to delete public/index.html.
|
51
|
-
# root :to => 'welcome#index'
|
52
|
-
|
53
|
-
# See how all your routes lay out with "rake routes"
|
54
|
-
|
55
|
-
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
|
-
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
|
-
# match ':controller(/:action(/:id))(.:format)'
|
58
56
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 0f5407a1dccb137d3cfa772f4c768b9b8fb8e5ab815dafdd6922142803554698a7e762fa9fbcd4a4efd23fa0fbff85b2c6f7edae3fee29d8a9feae95584e02f7
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: e9dfe3af2a97f3632efa98b8d556c62013cb9319b814a0322980530c80b4e5b296d228812c029b86a9800aa66166965a2b9dfb64a1308460cb5daede9819071e
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
data/test/dummy/db/schema.rb
CHANGED
@@ -9,20 +9,23 @@
|
|
9
9
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
10
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
11
|
#
|
12
|
-
# It's strongly recommended
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
14
|
+
ActiveRecord::Schema.define(version: 20121004204252) do
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
# These are extensions that must be enabled in order to support this database
|
17
|
+
enable_extension "plpgsql"
|
18
|
+
|
19
|
+
create_table "regions", force: true do |t|
|
20
|
+
t.boolean "fiction", default: false, null: false
|
18
21
|
t.integer "region_id"
|
19
|
-
t.integer "lftp",
|
20
|
-
t.integer "lftq",
|
21
|
-
t.integer "rgtp",
|
22
|
-
t.integer "rgtq",
|
23
|
-
t.decimal "lft", :
|
24
|
-
t.decimal "rgt", :
|
25
|
-
t.string "name",
|
22
|
+
t.integer "lftp", null: false
|
23
|
+
t.integer "lftq", null: false
|
24
|
+
t.integer "rgtp", null: false
|
25
|
+
t.integer "rgtq", null: false
|
26
|
+
t.decimal "lft", precision: 31, scale: 30, null: false
|
27
|
+
t.decimal "rgt", precision: 31, scale: 30, null: false
|
28
|
+
t.string "name", null: false
|
26
29
|
end
|
27
30
|
|
28
31
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
[1m[36m (43.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2
|
+
[1m[35m (61.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateRegions (20120302143528)
|
5
|
+
[1m[35m (0.6ms)[0m BEGIN
|
6
|
+
[1m[36m (53.8ms)[0m [1mCREATE TABLE "regions" ("id" serial primary key, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" character varying(255) NOT NULL) [0m
|
7
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20120302143528"]]
|
8
|
+
[1m[36m (12.3ms)[0m [1mCOMMIT[0m
|
9
|
+
Migrating to ChangeIntervalPrecision (20121004204252)
|
10
|
+
[1m[35m (0.7ms)[0m BEGIN
|
11
|
+
[1m[36m (98.2ms)[0m [1mALTER TABLE "regions" ALTER COLUMN "lft" TYPE decimal(31,30)[0m
|
12
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "regions" ALTER "lft" SET NOT NULL
|
13
|
+
[1m[36m (80.3ms)[0m [1mALTER TABLE "regions" ALTER COLUMN "rgt" TYPE decimal(31,30)[0m
|
14
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "regions" ALTER "rgt" SET NOT NULL
|
15
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20121004204252"]]
|
16
|
+
[1m[35m (17.3ms)[0m COMMIT
|
17
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
@@ -0,0 +1,2833 @@
|
|
1
|
+
[1m[36m (24.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [0m
|
2
|
+
[1m[35m (59.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateRegions (20120302143528)
|
5
|
+
[1m[35m (0.6ms)[0m BEGIN
|
6
|
+
[1m[36m (50.9ms)[0m [1mCREATE TABLE "regions" ("id" serial primary key, "fiction" boolean DEFAULT 'f' NOT NULL, "region_id" integer, "lftp" integer NOT NULL, "lftq" integer NOT NULL, "rgtp" integer NOT NULL, "rgtq" integer NOT NULL, "lft" float NOT NULL, "rgt" float NOT NULL, "name" character varying(255) NOT NULL) [0m
|
7
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20120302143528"]]
|
8
|
+
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
|
9
|
+
Migrating to ChangeIntervalPrecision (20121004204252)
|
10
|
+
[1m[35m (0.8ms)[0m BEGIN
|
11
|
+
[1m[36m (75.3ms)[0m [1mALTER TABLE "regions" ALTER COLUMN "lft" TYPE decimal(31,30)[0m
|
12
|
+
[1m[35m (0.7ms)[0m ALTER TABLE "regions" ALTER "lft" SET NOT NULL
|
13
|
+
[1m[36m (74.7ms)[0m [1mALTER TABLE "regions" ALTER COLUMN "rgt" TYPE decimal(31,30)[0m
|
14
|
+
[1m[35m (0.8ms)[0m ALTER TABLE "regions" ALTER "rgt" SET NOT NULL
|
15
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20121004204252"]]
|
16
|
+
[1m[35m (18.0ms)[0m COMMIT
|
17
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
|
+
[1m[35m (0.6ms)[0m BEGIN
|
20
|
+
----------------------------------------
|
21
|
+
ActsAsNestedIntervalTest: test_ancestors
|
22
|
+
----------------------------------------
|
23
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
24
|
+
[1m[35mSQL (2.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
25
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
26
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
27
|
+
[1m[36mRegion Load (2.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 1]]
|
28
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 1]]
|
29
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 1], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
30
|
+
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
|
31
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
32
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 2]]
|
33
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 2]]
|
34
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 2], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
35
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
37
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 2]]
|
38
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 2]]
|
39
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 2], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
40
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
41
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)[0m
|
42
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
|
43
|
+
[1m[36mRegion Load (2.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
44
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
|
45
|
+
[1m[36m (1.1ms)[0m [1mROLLBACK[0m
|
46
|
+
[1m[35m (0.5ms)[0m BEGIN
|
47
|
+
-------------------------------------------
|
48
|
+
ActsAsNestedIntervalTest: test_append_child
|
49
|
+
-------------------------------------------
|
50
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
51
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
52
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
53
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
54
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 5]]
|
55
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 5]]
|
56
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 5]]
|
57
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 5], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
58
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
59
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
60
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
61
|
+
-------------------------------------------------
|
62
|
+
ActsAsNestedIntervalTest: test_create_first_child
|
63
|
+
-------------------------------------------------
|
64
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
65
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
66
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 7]]
|
67
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 7]]
|
68
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 7], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
69
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
70
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
71
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
72
|
+
------------------------------------------
|
73
|
+
ActsAsNestedIntervalTest: test_create_root
|
74
|
+
------------------------------------------
|
75
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
76
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
77
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
78
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL[0m
|
79
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
80
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
81
|
+
--------------------------------------------------
|
82
|
+
ActsAsNestedIntervalTest: test_create_second_child
|
83
|
+
--------------------------------------------------
|
84
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
85
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
86
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
87
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
88
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 10]]
|
89
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 10]]
|
90
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 10], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
91
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
92
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
93
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 11]]
|
94
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 11]]
|
95
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 11], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
96
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
97
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
98
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 11]]
|
99
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 11]]
|
100
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 11], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
101
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
102
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
103
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
104
|
+
-------------------------------------------------
|
105
|
+
ActsAsNestedIntervalTest: test_database_precision
|
106
|
+
-------------------------------------------------
|
107
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
108
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "root"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
109
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
110
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
111
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 14]]
|
112
|
+
[1m[36mRegion Load (1.5ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 14]]
|
113
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "l1"], ["region_id", 14], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
114
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
115
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
116
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 15]]
|
117
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 15]]
|
118
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "l2"], ["region_id", 15], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
119
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
120
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
121
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 16]]
|
122
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 16]]
|
123
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.75"], ["lftp", 3], ["lftq", 4], ["name", "l3"], ["region_id", 16], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
124
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
125
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
126
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 17]]
|
127
|
+
[1m[35mRegion Load (0.7ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 17]]
|
128
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.8"], ["lftp", 4], ["lftq", 5], ["name", "l4"], ["region_id", 17], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
129
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
130
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
131
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 17]]
|
132
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 15]]
|
133
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 15]]
|
134
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
135
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
136
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
137
|
+
------------------------------------
|
138
|
+
ActsAsNestedIntervalTest: test_depth
|
139
|
+
------------------------------------
|
140
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
141
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
142
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
143
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
144
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 19]]
|
145
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 19]]
|
146
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 19], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
147
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
148
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
149
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 20]]
|
150
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 20]]
|
151
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 20], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
152
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
153
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
154
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 20]]
|
155
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 20]]
|
156
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 20], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
157
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
158
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
159
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
160
|
+
------------------------------------------
|
161
|
+
ActsAsNestedIntervalTest: test_descendants
|
162
|
+
------------------------------------------
|
163
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
164
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
165
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
166
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
167
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 23]]
|
168
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 23]]
|
169
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 23], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
170
|
+
[1m[36m (2.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
171
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
172
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 24]]
|
173
|
+
[1m[35mRegion Load (0.7ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 24]]
|
174
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 24], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
175
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
176
|
+
[1m[36m (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
177
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 24]]
|
178
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 24]]
|
179
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 24], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
180
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
181
|
+
[1m[35mRegion Load (2.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
|
182
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.5 AND rgt <= 1.0)[0m
|
183
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.6666666666666666 AND rgt <= 1.0)
|
184
|
+
[1m[36m (1.2ms)[0m [1mROLLBACK[0m
|
185
|
+
[1m[35m (0.6ms)[0m BEGIN
|
186
|
+
--------------------------------------
|
187
|
+
ActsAsNestedIntervalTest: test_destroy
|
188
|
+
--------------------------------------
|
189
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
190
|
+
[1m[35mSQL (3.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
191
|
+
[1m[36m (3.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
192
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
193
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 27]]
|
194
|
+
[1m[35mRegion Load (8.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 27]]
|
195
|
+
[1m[36mSQL (14.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 27], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
196
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
197
|
+
[1m[36m (9.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
198
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 28]]
|
199
|
+
[1m[36mRegion Load (5.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 28]]
|
200
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 28], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
201
|
+
[1m[36m (2.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
202
|
+
[1m[35m (3.2ms)[0m SAVEPOINT active_record_1
|
203
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 28]]
|
204
|
+
[1m[35mRegion Load (3.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 28]]
|
205
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 28], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
206
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
207
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
208
|
+
[1m[35mRegion Exists (1.0ms)[0m SELECT 1 AS one FROM "regions" WHERE "regions"."region_id" = $1 LIMIT 1 [["region_id", 28]]
|
209
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
210
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
211
|
+
[1m[36m (1.9ms)[0m [1mBEGIN[0m
|
212
|
+
-------------------------------------
|
213
|
+
ActsAsNestedIntervalTest: test_limits
|
214
|
+
-------------------------------------
|
215
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
216
|
+
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", ""], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
217
|
+
[1m[35m (2.3ms)[0m RELEASE SAVEPOINT active_record_1
|
218
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
219
|
+
[1m[35mRegion Load (3.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 31]]
|
220
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 31]]
|
221
|
+
[1m[35mSQL (2.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", ""], ["region_id", 31], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
222
|
+
[1m[36m (1.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
223
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
224
|
+
[1m[36mRegion Load (5.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 31]]
|
225
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 31]]
|
226
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", ""], ["region_id", 31], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
227
|
+
[1m[35m (2.0ms)[0m RELEASE SAVEPOINT active_record_1
|
228
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
229
|
+
[1m[35mRegion Load (3.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 33]]
|
230
|
+
[1m[36mRegion Load (2.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 33]]
|
231
|
+
[1m[35mSQL (1.6ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["name", ""], ["region_id", 33], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
232
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
233
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
234
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 33]]
|
235
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 33]]
|
236
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.375"], ["lftp", 3], ["lftq", 8], ["name", ""], ["region_id", 33], ["rgt", "0.4"], ["rgtp", 2], ["rgtq", 5]]
|
237
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
238
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
239
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 35]]
|
240
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 35]]
|
241
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.384615384615385"], ["lftp", 5], ["lftq", 13], ["name", ""], ["region_id", 35], ["rgt", "0.4"], ["rgtp", 2], ["rgtq", 5]]
|
242
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
243
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
244
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 35]]
|
245
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 35]]
|
246
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.380952380952381"], ["lftp", 8], ["lftq", 21], ["name", ""], ["region_id", 35], ["rgt", "0.384615384615385"], ["rgtp", 5], ["rgtq", 13]]
|
247
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
248
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
249
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 37]]
|
250
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 37]]
|
251
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.382352941176471"], ["lftp", 13], ["lftq", 34], ["name", ""], ["region_id", 37], ["rgt", "0.384615384615385"], ["rgtp", 5], ["rgtq", 13]]
|
252
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
253
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
254
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 37]]
|
255
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 37]]
|
256
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381818181818182"], ["lftp", 21], ["lftq", 55], ["name", ""], ["region_id", 37], ["rgt", "0.382352941176471"], ["rgtp", 13], ["rgtq", 34]]
|
257
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
258
|
+
[1m[36m (2.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
259
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 39]]
|
260
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 39]]
|
261
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.382022471910112"], ["lftp", 34], ["lftq", 89], ["name", ""], ["region_id", 39], ["rgt", "0.382352941176471"], ["rgtp", 13], ["rgtq", 34]]
|
262
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
263
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
264
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 39]]
|
265
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 39]]
|
266
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381944444444444"], ["lftp", 55], ["lftq", 144], ["name", ""], ["region_id", 39], ["rgt", "0.382022471910112"], ["rgtp", 34], ["rgtq", 89]]
|
267
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
268
|
+
[1m[36m (7.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
269
|
+
[1m[35mRegion Load (10.5ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 41]]
|
270
|
+
[1m[36mRegion Load (5.5ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 41]]
|
271
|
+
[1m[35mSQL (6.3ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381974248927039"], ["lftp", 89], ["lftq", 233], ["name", ""], ["region_id", 41], ["rgt", "0.382022471910112"], ["rgtp", 34], ["rgtq", 89]]
|
272
|
+
[1m[36m (1.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
273
|
+
[1m[35m (6.1ms)[0m SAVEPOINT active_record_1
|
274
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 41]]
|
275
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 41]]
|
276
|
+
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381962864721485"], ["lftp", 144], ["lftq", 377], ["name", ""], ["region_id", 41], ["rgt", "0.381974248927039"], ["rgtp", 89], ["rgtq", 233]]
|
277
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
278
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
279
|
+
[1m[35mRegion Load (3.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 43]]
|
280
|
+
[1m[36mRegion Load (1.4ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 43]]
|
281
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381967213114754"], ["lftp", 233], ["lftq", 610], ["name", ""], ["region_id", 43], ["rgt", "0.381974248927039"], ["rgtp", 89], ["rgtq", 233]]
|
282
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
283
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
284
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 43]]
|
285
|
+
[1m[35mRegion Load (1.6ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 43]]
|
286
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381965552178318"], ["lftp", 377], ["lftq", 987], ["name", ""], ["region_id", 43], ["rgt", "0.381967213114754"], ["rgtp", 233], ["rgtq", 610]]
|
287
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
288
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
289
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 45]]
|
290
|
+
[1m[36mRegion Load (9.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 45]]
|
291
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966186599875"], ["lftp", 610], ["lftq", 1597], ["name", ""], ["region_id", 45], ["rgt", "0.381967213114754"], ["rgtp", 233], ["rgtq", 610]]
|
292
|
+
[1m[36m (1.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
293
|
+
[1m[35m (1.7ms)[0m SAVEPOINT active_record_1
|
294
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 45]]
|
295
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 45]]
|
296
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381965944272446"], ["lftp", 987], ["lftq", 2584], ["name", ""], ["region_id", 45], ["rgt", "0.381966186599875"], ["rgtp", 610], ["rgtq", 1597]]
|
297
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
298
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
299
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 47]]
|
300
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 47]]
|
301
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966036833293"], ["lftp", 1597], ["lftq", 4181], ["name", ""], ["region_id", 47], ["rgt", "0.381966186599875"], ["rgtp", 610], ["rgtq", 1597]]
|
302
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
303
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
304
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 47]]
|
305
|
+
[1m[35mRegion Load (2.6ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 47]]
|
306
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966001478197"], ["lftp", 2584], ["lftq", 6765], ["name", ""], ["region_id", 47], ["rgt", "0.381966036833293"], ["rgtp", 1597], ["rgtq", 4181]]
|
307
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
308
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
309
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 49]]
|
310
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 49]]
|
311
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966014982642"], ["lftp", 4181], ["lftq", 10946], ["name", ""], ["region_id", 49], ["rgt", "0.381966036833293"], ["rgtp", 1597], ["rgtq", 4181]]
|
312
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
313
|
+
[1m[35m (3.2ms)[0m SAVEPOINT active_record_1
|
314
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 49]]
|
315
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 49]]
|
316
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966009824403"], ["lftp", 6765], ["lftq", 17711], ["name", ""], ["region_id", 49], ["rgt", "0.381966014982642"], ["rgtp", 4181], ["rgtq", 10946]]
|
317
|
+
[1m[35m (4.3ms)[0m RELEASE SAVEPOINT active_record_1
|
318
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
319
|
+
[1m[35mRegion Load (2.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 51]]
|
320
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 51]]
|
321
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011794675"], ["lftp", 10946], ["lftq", 28657], ["name", ""], ["region_id", 51], ["rgt", "0.381966014982642"], ["rgtp", 4181], ["rgtq", 10946]]
|
322
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323
|
+
[1m[35m (4.1ms)[0m SAVEPOINT active_record_1
|
324
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 51]]
|
325
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 51]]
|
326
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011042098"], ["lftp", 17711], ["lftq", 46368], ["name", ""], ["region_id", 51], ["rgt", "0.381966011794675"], ["rgtp", 10946], ["rgtq", 28657]]
|
327
|
+
[1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
|
328
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
329
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 53]]
|
330
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 53]]
|
331
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011329557"], ["lftp", 28657], ["lftq", 75025], ["name", ""], ["region_id", 53], ["rgt", "0.381966011794675"], ["rgtp", 10946], ["rgtq", 28657]]
|
332
|
+
[1m[36m (1.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
333
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
334
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 53]]
|
335
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 53]]
|
336
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011219757"], ["lftp", 46368], ["lftq", 121393], ["name", ""], ["region_id", 53], ["rgt", "0.381966011329557"], ["rgtp", 28657], ["rgtq", 75025]]
|
337
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
338
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
339
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 55]]
|
340
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 55]]
|
341
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011261697"], ["lftp", 75025], ["lftq", 196418], ["name", ""], ["region_id", 55], ["rgt", "0.381966011329557"], ["rgtp", 28657], ["rgtq", 75025]]
|
342
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
343
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
344
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 55]]
|
345
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 55]]
|
346
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011245677"], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 55], ["rgt", "0.381966011261697"], ["rgtp", 75025], ["rgtq", 196418]]
|
347
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
348
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
349
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 57]]
|
350
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 57]]
|
351
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011251796"], ["lftp", 196418], ["lftq", 514229], ["name", ""], ["region_id", 57], ["rgt", "0.381966011261697"], ["rgtp", 75025], ["rgtq", 196418]]
|
352
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
353
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
354
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 57]]
|
355
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 57]]
|
356
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011249459"], ["lftp", 317811], ["lftq", 832040], ["name", ""], ["region_id", 57], ["rgt", "0.381966011251796"], ["rgtp", 196418], ["rgtq", 514229]]
|
357
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
358
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
359
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 59]]
|
360
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 59]]
|
361
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250352"], ["lftp", 514229], ["lftq", 1346269], ["name", ""], ["region_id", 59], ["rgt", "0.381966011251796"], ["rgtp", 196418], ["rgtq", 514229]]
|
362
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
363
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
364
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 59]]
|
365
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 59]]
|
366
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250011"], ["lftp", 832040], ["lftq", 2178309], ["name", ""], ["region_id", 59], ["rgt", "0.381966011250352"], ["rgtp", 514229], ["rgtq", 1346269]]
|
367
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
368
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
369
|
+
[1m[35mRegion Load (2.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 61]]
|
370
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 61]]
|
371
|
+
[1m[35mSQL (6.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250141"], ["lftp", 1346269], ["lftq", 3524578], ["name", ""], ["region_id", 61], ["rgt", "0.381966011250352"], ["rgtp", 514229], ["rgtq", 1346269]]
|
372
|
+
[1m[36m (17.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
373
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
374
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 61]]
|
375
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 61]]
|
376
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250091"], ["lftp", 2178309], ["lftq", 5702887], ["name", ""], ["region_id", 61], ["rgt", "0.381966011250141"], ["rgtp", 1346269], ["rgtq", 3524578]]
|
377
|
+
[1m[35m (2.2ms)[0m RELEASE SAVEPOINT active_record_1
|
378
|
+
[1m[36m (1.9ms)[0m [1mSAVEPOINT active_record_1[0m
|
379
|
+
[1m[35mRegion Load (5.5ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 63]]
|
380
|
+
[1m[36mRegion Load (8.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 63]]
|
381
|
+
[1m[35mSQL (5.4ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.38196601125011"], ["lftp", 3524578], ["lftq", 9227465], ["name", ""], ["region_id", 63], ["rgt", "0.381966011250141"], ["rgtp", 1346269], ["rgtq", 3524578]]
|
382
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
383
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
384
|
+
[1m[36mRegion Load (9.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 63]]
|
385
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 63]]
|
386
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250103"], ["lftp", 5702887], ["lftq", 14930352], ["name", ""], ["region_id", 63], ["rgt", "0.38196601125011"], ["rgtp", 3524578], ["rgtq", 9227465]]
|
387
|
+
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
|
388
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
389
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 65]]
|
390
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 65]]
|
391
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250106"], ["lftp", 9227465], ["lftq", 24157817], ["name", ""], ["region_id", 65], ["rgt", "0.38196601125011"], ["rgtp", 3524578], ["rgtq", 9227465]]
|
392
|
+
[1m[36m (2.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
393
|
+
[1m[35m (1.0ms)[0m SAVEPOINT active_record_1
|
394
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 65]]
|
395
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 65]]
|
396
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 14930352], ["lftq", 39088169], ["name", ""], ["region_id", 65], ["rgt", "0.381966011250106"], ["rgtp", 9227465], ["rgtq", 24157817]]
|
397
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
398
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
399
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 67]]
|
400
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 67]]
|
401
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 24157817], ["lftq", 63245986], ["name", ""], ["region_id", 67], ["rgt", "0.381966011250106"], ["rgtp", 9227465], ["rgtq", 24157817]]
|
402
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
403
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
404
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 67]]
|
405
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 67]]
|
406
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 39088169], ["lftq", 102334155], ["name", ""], ["region_id", 67], ["rgt", "0.381966011250105"], ["rgtp", 24157817], ["rgtq", 63245986]]
|
407
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
408
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
409
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 69]]
|
410
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 69]]
|
411
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 63245986], ["lftq", 165580141], ["name", ""], ["region_id", 69], ["rgt", "0.381966011250105"], ["rgtp", 24157817], ["rgtq", 63245986]]
|
412
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
413
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
414
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 69]]
|
415
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 69]]
|
416
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 102334155], ["lftq", 267914296], ["name", ""], ["region_id", 69], ["rgt", "0.381966011250105"], ["rgtp", 63245986], ["rgtq", 165580141]]
|
417
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
418
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
419
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 71]]
|
420
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 71]]
|
421
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 165580141], ["lftq", 433494437], ["name", ""], ["region_id", 71], ["rgt", "0.381966011250105"], ["rgtp", 63245986], ["rgtq", 165580141]]
|
422
|
+
[1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
423
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
424
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 71]]
|
425
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 71]]
|
426
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 267914296], ["lftq", 701408733], ["name", ""], ["region_id", 71], ["rgt", "0.381966011250105"], ["rgtp", 165580141], ["rgtq", 433494437]]
|
427
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
428
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
429
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 73]]
|
430
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 73]]
|
431
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 433494437], ["lftq", 1134903170], ["name", ""], ["region_id", 73], ["rgt", "0.381966011250105"], ["rgtp", 165580141], ["rgtq", 433494437]]
|
432
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
433
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
434
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 73]]
|
435
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 73]]
|
436
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 701408733], ["lftq", 1836311903], ["name", ""], ["region_id", 73], ["rgt", "0.381966011250105"], ["rgtp", 433494437], ["rgtq", 1134903170]]
|
437
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
438
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
439
|
+
[1m[35m (0.5ms)[0m BEGIN
|
440
|
+
----------------------------------------------
|
441
|
+
ActsAsNestedIntervalTest: test_modular_inverse
|
442
|
+
----------------------------------------------
|
443
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
444
|
+
[1m[35m (1.3ms)[0m BEGIN
|
445
|
+
-----------------------------------
|
446
|
+
ActsAsNestedIntervalTest: test_move
|
447
|
+
-----------------------------------
|
448
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
449
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
450
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
451
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
452
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 76]]
|
453
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 76]]
|
454
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 76], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
455
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
456
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
457
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 77]]
|
458
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 77]]
|
459
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 77], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
460
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
461
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
462
|
+
[1m[36mRegion Load (2.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 77]]
|
463
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 77]]
|
464
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 77], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
465
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
466
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
467
|
+
[1m[35mRegion Load (11.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 77]]
|
468
|
+
[1m[36mRegion Load (5.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 77]]
|
469
|
+
[1m[35m (0.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
470
|
+
[1m[36m (2.9ms)[0m [1mSAVEPOINT active_record_1[0m
|
471
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 77]]
|
472
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 78]]
|
473
|
+
[1m[35m (2.5ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
474
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
475
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 76]]
|
476
|
+
[1m[36mRegion Load (1.4ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 76]]
|
477
|
+
[1m[35mSQL (3.3ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Pacific"], ["region_id", 76], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
478
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
479
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
480
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 77]]
|
481
|
+
[1m[35mRegion Load (3.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 80]]
|
482
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 80]]
|
483
|
+
[1m[35m (3.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
484
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
485
|
+
[1m[35m (0.7ms)[0m BEGIN
|
486
|
+
------------------------------------------------------
|
487
|
+
ActsAsNestedIntervalTest: test_move_from_left_to_right
|
488
|
+
------------------------------------------------------
|
489
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
490
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
491
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
492
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
493
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 81]]
|
494
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 81]]
|
495
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "europe"], ["region_id", 81], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
496
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
497
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
498
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 81]]
|
499
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 81]]
|
500
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "america"], ["region_id", 81], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
501
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
502
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
503
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 83]]
|
504
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 83]]
|
505
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["name", "usa"], ["region_id", 83], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
506
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
507
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
508
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 84]]
|
509
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 84]]
|
510
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.428571428571429"], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 84], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
511
|
+
[1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
512
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
513
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 85]]
|
514
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 85]]
|
515
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.444444444444444"], ["lftp", 4], ["lftq", 9], ["name", "houston"], ["region_id", 85], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
516
|
+
[1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
|
517
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
518
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 85]]
|
519
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 82]]
|
520
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 82]]
|
521
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
522
|
+
[1m[35m (0.9ms)[0m ROLLBACK
|
523
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
524
|
+
---------------------------------------------------------------
|
525
|
+
ActsAsNestedIntervalTest: test_move_to_root_recomputes_interval
|
526
|
+
---------------------------------------------------------------
|
527
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
528
|
+
[1m[36mRegion Load (1.4ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
529
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
530
|
+
[1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
531
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
532
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 87]]
|
533
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 87]]
|
534
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 87], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
535
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
536
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
537
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
538
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
539
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
540
|
+
[1m[36m (1.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
541
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
542
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
543
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
544
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
545
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 88]]
|
546
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
547
|
+
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
548
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
549
|
+
[1m[35m (0.7ms)[0m BEGIN
|
550
|
+
---------------------------------------
|
551
|
+
ActsAsNestedIntervalTest: test_preorder
|
552
|
+
---------------------------------------
|
553
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
554
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
555
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
556
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
557
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
558
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 91]]
|
559
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 91]]
|
560
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 91], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
561
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
562
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
563
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 91]]
|
564
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 91]]
|
565
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 91], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
566
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
567
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
568
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 92]]
|
569
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 92]]
|
570
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.75"], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 92], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
571
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
572
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
573
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 92]]
|
574
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 92]]
|
575
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.714285714285714"], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 92], ["rgt", "0.75"], ["rgtp", 3], ["rgtq", 4]]
|
576
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
577
|
+
[1m[36mRegion Load (2.8ms)[0m [1mSELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC[0m
|
578
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
579
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
580
|
+
-----------------------------------------------------------
|
581
|
+
ActsAsNestedIntervalTest: test_rebuild_nested_interval_tree
|
582
|
+
-----------------------------------------------------------
|
583
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
584
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
585
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
586
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
587
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
588
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 96]]
|
589
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 96]]
|
590
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 96], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
591
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
592
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
593
|
+
[1m[35mRegion Load (1.5ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
594
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
595
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
596
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
597
|
+
[1m[35mRegion Load (1.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
598
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
599
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
600
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
601
|
+
[1m[35m (0.5ms)[0m BEGIN
|
602
|
+
---------------------------------------------------------
|
603
|
+
ActsAsNestedIntervalTest: test_root_update_keeps_interval
|
604
|
+
---------------------------------------------------------
|
605
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
606
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
607
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
608
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
609
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
610
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 100]]
|
611
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 100]]
|
612
|
+
[1m[35mSQL (1.7ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 100], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
613
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
614
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
615
|
+
[1m[36mRegion Load (1.5ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
616
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
617
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
618
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
619
|
+
[1m[36mRegion Load (1.4ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
620
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
621
|
+
[1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
622
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
623
|
+
[1m[36mSQL (1.4ms)[0m [1mUPDATE "regions" SET "name" = $1 WHERE "regions"."id" = 103[0m [["name", "USA"]]
|
624
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
625
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
626
|
+
[1m[35m (0.6ms)[0m BEGIN
|
627
|
+
------------------------------------
|
628
|
+
ActsAsNestedIntervalTest: test_scope
|
629
|
+
------------------------------------
|
630
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
631
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
632
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
633
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
634
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
635
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 104]]
|
636
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 104]]
|
637
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 104], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
638
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
639
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
640
|
+
[1m[36mRegion Load (1.4ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
641
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["fiction", "t"], ["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Krypton"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
642
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
643
|
+
[1m[35mRegion Load (1.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
|
644
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND (lft > 0.5 AND rgt <= 1.0)[0m
|
645
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
646
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
647
|
+
------------------------------------------------------
|
648
|
+
ActsAsNestedIntervalTest: test_virtual_root_allocation
|
649
|
+
------------------------------------------------------
|
650
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
651
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
652
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
653
|
+
[1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
654
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
655
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 107]]
|
656
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 107]]
|
657
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 107], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
658
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
659
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
660
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
661
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
662
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
663
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
664
|
+
[1m[35mRegion Load (1.5ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
665
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
666
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
667
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC[0m
|
668
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
669
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
670
|
+
-------------------------------------------------
|
671
|
+
ActsAsNestedIntervalTest: test_virtual_root_order
|
672
|
+
-------------------------------------------------
|
673
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
674
|
+
[1m[36mRegion Load (3.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
675
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "1"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
676
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
677
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
678
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
679
|
+
[1m[35mSQL (3.7ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "2"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
680
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
681
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
682
|
+
[1m[36mRegion Load (1.5ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
683
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "3"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
684
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
685
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
686
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
687
|
+
[1m[35m (0.7ms)[0m BEGIN
|
688
|
+
----------------------------------------
|
689
|
+
ActsAsNestedIntervalTest: test_ancestors
|
690
|
+
----------------------------------------
|
691
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
692
|
+
[1m[35mSQL (2.7ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
693
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
694
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
695
|
+
[1m[36mRegion Load (1.6ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 114]]
|
696
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 114]]
|
697
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 114], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
698
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
699
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
700
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 115]]
|
701
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 115]]
|
702
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 115], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
703
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
704
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
705
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 115]]
|
706
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 115]]
|
707
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 115], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
708
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
709
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)[0m
|
710
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
|
711
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
712
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
|
713
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
714
|
+
[1m[35m (0.5ms)[0m BEGIN
|
715
|
+
-------------------------------------------
|
716
|
+
ActsAsNestedIntervalTest: test_append_child
|
717
|
+
-------------------------------------------
|
718
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
719
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
720
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
721
|
+
[1m[35m (1.9ms)[0m SAVEPOINT active_record_1
|
722
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 118]]
|
723
|
+
[1m[35mRegion Load (1.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 118]]
|
724
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 118]]
|
725
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 118], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
726
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
727
|
+
[1m[35m (0.9ms)[0m ROLLBACK
|
728
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
729
|
+
-------------------------------------------------
|
730
|
+
ActsAsNestedIntervalTest: test_create_first_child
|
731
|
+
-------------------------------------------------
|
732
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
733
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
734
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 120]]
|
735
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 120]]
|
736
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 120], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
737
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
738
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
739
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
740
|
+
------------------------------------------
|
741
|
+
ActsAsNestedIntervalTest: test_create_root
|
742
|
+
------------------------------------------
|
743
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
744
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
745
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
746
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL[0m
|
747
|
+
[1m[35m (1.2ms)[0m ROLLBACK
|
748
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
749
|
+
--------------------------------------------------
|
750
|
+
ActsAsNestedIntervalTest: test_create_second_child
|
751
|
+
--------------------------------------------------
|
752
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
753
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
754
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
755
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
756
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 123]]
|
757
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 123]]
|
758
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 123], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
759
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
760
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
761
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 124]]
|
762
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 124]]
|
763
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 124], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
764
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
765
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
766
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 124]]
|
767
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 124]]
|
768
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 124], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
769
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
770
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
771
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
772
|
+
-------------------------------------------------
|
773
|
+
ActsAsNestedIntervalTest: test_database_precision
|
774
|
+
-------------------------------------------------
|
775
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
776
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "root"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
777
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
778
|
+
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
|
779
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 127]]
|
780
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 127]]
|
781
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "l1"], ["region_id", 127], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
782
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
783
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
784
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 128]]
|
785
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 128]]
|
786
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "l2"], ["region_id", 128], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
787
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
788
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
789
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 129]]
|
790
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 129]]
|
791
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.75"], ["lftp", 3], ["lftq", 4], ["name", "l3"], ["region_id", 129], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
792
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
793
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
794
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 130]]
|
795
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 130]]
|
796
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.8"], ["lftp", 4], ["lftq", 5], ["name", "l4"], ["region_id", 130], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
797
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
798
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
799
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 130]]
|
800
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 128]]
|
801
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 128]]
|
802
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
803
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
804
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
805
|
+
------------------------------------
|
806
|
+
ActsAsNestedIntervalTest: test_depth
|
807
|
+
------------------------------------
|
808
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
809
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
810
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
811
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
812
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 132]]
|
813
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 132]]
|
814
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 132], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
815
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
816
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
817
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 133]]
|
818
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 133]]
|
819
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 133], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
820
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
821
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
822
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 133]]
|
823
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 133]]
|
824
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 133], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
825
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
826
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
827
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
828
|
+
------------------------------------------
|
829
|
+
ActsAsNestedIntervalTest: test_descendants
|
830
|
+
------------------------------------------
|
831
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
832
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
833
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
834
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
835
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 136]]
|
836
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 136]]
|
837
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 136], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
838
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
839
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
840
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 137]]
|
841
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 137]]
|
842
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 137], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
843
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
844
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
845
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 137]]
|
846
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 137]]
|
847
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 137], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
848
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
849
|
+
[1m[35mRegion Load (1.6ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)
|
850
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.5 AND rgt <= 1.0)[0m
|
851
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.6666666666666666 AND rgt <= 1.0)
|
852
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
853
|
+
[1m[35m (0.5ms)[0m BEGIN
|
854
|
+
--------------------------------------
|
855
|
+
ActsAsNestedIntervalTest: test_destroy
|
856
|
+
--------------------------------------
|
857
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
858
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
859
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
860
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
861
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 140]]
|
862
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 140]]
|
863
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 140], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
864
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
865
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
866
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 141]]
|
867
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 141]]
|
868
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 141], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
869
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
870
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
871
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 141]]
|
872
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 141]]
|
873
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 141], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
874
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
875
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
876
|
+
[1m[35mRegion Exists (1.0ms)[0m SELECT 1 AS one FROM "regions" WHERE "regions"."region_id" = $1 LIMIT 1 [["region_id", 141]]
|
877
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
878
|
+
[1m[35m (0.9ms)[0m ROLLBACK
|
879
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
880
|
+
-------------------------------------
|
881
|
+
ActsAsNestedIntervalTest: test_limits
|
882
|
+
-------------------------------------
|
883
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
884
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", ""], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
885
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
886
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
887
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 144]]
|
888
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 144]]
|
889
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", ""], ["region_id", 144], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
890
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
891
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
892
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 144]]
|
893
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 144]]
|
894
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", ""], ["region_id", 144], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
895
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
896
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
897
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 146]]
|
898
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 146]]
|
899
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["name", ""], ["region_id", 146], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
900
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
901
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
902
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 146]]
|
903
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 146]]
|
904
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.375"], ["lftp", 3], ["lftq", 8], ["name", ""], ["region_id", 146], ["rgt", "0.4"], ["rgtp", 2], ["rgtq", 5]]
|
905
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
906
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
907
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 148]]
|
908
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 148]]
|
909
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.384615384615385"], ["lftp", 5], ["lftq", 13], ["name", ""], ["region_id", 148], ["rgt", "0.4"], ["rgtp", 2], ["rgtq", 5]]
|
910
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
911
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
912
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 148]]
|
913
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 148]]
|
914
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.380952380952381"], ["lftp", 8], ["lftq", 21], ["name", ""], ["region_id", 148], ["rgt", "0.384615384615385"], ["rgtp", 5], ["rgtq", 13]]
|
915
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
916
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
917
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 150]]
|
918
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 150]]
|
919
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.382352941176471"], ["lftp", 13], ["lftq", 34], ["name", ""], ["region_id", 150], ["rgt", "0.384615384615385"], ["rgtp", 5], ["rgtq", 13]]
|
920
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
921
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
922
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 150]]
|
923
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 150]]
|
924
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381818181818182"], ["lftp", 21], ["lftq", 55], ["name", ""], ["region_id", 150], ["rgt", "0.382352941176471"], ["rgtp", 13], ["rgtq", 34]]
|
925
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
926
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
927
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 152]]
|
928
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 152]]
|
929
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.382022471910112"], ["lftp", 34], ["lftq", 89], ["name", ""], ["region_id", 152], ["rgt", "0.382352941176471"], ["rgtp", 13], ["rgtq", 34]]
|
930
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
931
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
932
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 152]]
|
933
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 152]]
|
934
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381944444444444"], ["lftp", 55], ["lftq", 144], ["name", ""], ["region_id", 152], ["rgt", "0.382022471910112"], ["rgtp", 34], ["rgtq", 89]]
|
935
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
936
|
+
[1m[36m (1.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
937
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 154]]
|
938
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 154]]
|
939
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381974248927039"], ["lftp", 89], ["lftq", 233], ["name", ""], ["region_id", 154], ["rgt", "0.382022471910112"], ["rgtp", 34], ["rgtq", 89]]
|
940
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
941
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
942
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 154]]
|
943
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 154]]
|
944
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381962864721485"], ["lftp", 144], ["lftq", 377], ["name", ""], ["region_id", 154], ["rgt", "0.381974248927039"], ["rgtp", 89], ["rgtq", 233]]
|
945
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
946
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
947
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 156]]
|
948
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 156]]
|
949
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381967213114754"], ["lftp", 233], ["lftq", 610], ["name", ""], ["region_id", 156], ["rgt", "0.381974248927039"], ["rgtp", 89], ["rgtq", 233]]
|
950
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
951
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
952
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 156]]
|
953
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 156]]
|
954
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381965552178318"], ["lftp", 377], ["lftq", 987], ["name", ""], ["region_id", 156], ["rgt", "0.381967213114754"], ["rgtp", 233], ["rgtq", 610]]
|
955
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
956
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
957
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 158]]
|
958
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 158]]
|
959
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966186599875"], ["lftp", 610], ["lftq", 1597], ["name", ""], ["region_id", 158], ["rgt", "0.381967213114754"], ["rgtp", 233], ["rgtq", 610]]
|
960
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
961
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
962
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 158]]
|
963
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 158]]
|
964
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381965944272446"], ["lftp", 987], ["lftq", 2584], ["name", ""], ["region_id", 158], ["rgt", "0.381966186599875"], ["rgtp", 610], ["rgtq", 1597]]
|
965
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
966
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
967
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 160]]
|
968
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 160]]
|
969
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966036833293"], ["lftp", 1597], ["lftq", 4181], ["name", ""], ["region_id", 160], ["rgt", "0.381966186599875"], ["rgtp", 610], ["rgtq", 1597]]
|
970
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
971
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
972
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 160]]
|
973
|
+
[1m[35mRegion Load (5.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 160]]
|
974
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966001478197"], ["lftp", 2584], ["lftq", 6765], ["name", ""], ["region_id", 160], ["rgt", "0.381966036833293"], ["rgtp", 1597], ["rgtq", 4181]]
|
975
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
976
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
977
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 162]]
|
978
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 162]]
|
979
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966014982642"], ["lftp", 4181], ["lftq", 10946], ["name", ""], ["region_id", 162], ["rgt", "0.381966036833293"], ["rgtp", 1597], ["rgtq", 4181]]
|
980
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
981
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
982
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 162]]
|
983
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 162]]
|
984
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966009824403"], ["lftp", 6765], ["lftq", 17711], ["name", ""], ["region_id", 162], ["rgt", "0.381966014982642"], ["rgtp", 4181], ["rgtq", 10946]]
|
985
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
986
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
987
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 164]]
|
988
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 164]]
|
989
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011794675"], ["lftp", 10946], ["lftq", 28657], ["name", ""], ["region_id", 164], ["rgt", "0.381966014982642"], ["rgtp", 4181], ["rgtq", 10946]]
|
990
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
991
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
992
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 164]]
|
993
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 164]]
|
994
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011042098"], ["lftp", 17711], ["lftq", 46368], ["name", ""], ["region_id", 164], ["rgt", "0.381966011794675"], ["rgtp", 10946], ["rgtq", 28657]]
|
995
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
996
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
997
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 166]]
|
998
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 166]]
|
999
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011329557"], ["lftp", 28657], ["lftq", 75025], ["name", ""], ["region_id", 166], ["rgt", "0.381966011794675"], ["rgtp", 10946], ["rgtq", 28657]]
|
1000
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1001
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1002
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 166]]
|
1003
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 166]]
|
1004
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011219757"], ["lftp", 46368], ["lftq", 121393], ["name", ""], ["region_id", 166], ["rgt", "0.381966011329557"], ["rgtp", 28657], ["rgtq", 75025]]
|
1005
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1006
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1007
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 168]]
|
1008
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 168]]
|
1009
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011261697"], ["lftp", 75025], ["lftq", 196418], ["name", ""], ["region_id", 168], ["rgt", "0.381966011329557"], ["rgtp", 28657], ["rgtq", 75025]]
|
1010
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1011
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1012
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 168]]
|
1013
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 168]]
|
1014
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011245677"], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 168], ["rgt", "0.381966011261697"], ["rgtp", 75025], ["rgtq", 196418]]
|
1015
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1016
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1017
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 170]]
|
1018
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 170]]
|
1019
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011251796"], ["lftp", 196418], ["lftq", 514229], ["name", ""], ["region_id", 170], ["rgt", "0.381966011261697"], ["rgtp", 75025], ["rgtq", 196418]]
|
1020
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1021
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1022
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 170]]
|
1023
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 170]]
|
1024
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011249459"], ["lftp", 317811], ["lftq", 832040], ["name", ""], ["region_id", 170], ["rgt", "0.381966011251796"], ["rgtp", 196418], ["rgtq", 514229]]
|
1025
|
+
[1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
|
1026
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1027
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 172]]
|
1028
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 172]]
|
1029
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250352"], ["lftp", 514229], ["lftq", 1346269], ["name", ""], ["region_id", 172], ["rgt", "0.381966011251796"], ["rgtp", 196418], ["rgtq", 514229]]
|
1030
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1031
|
+
[1m[35m (1.7ms)[0m SAVEPOINT active_record_1
|
1032
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 172]]
|
1033
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 172]]
|
1034
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250011"], ["lftp", 832040], ["lftq", 2178309], ["name", ""], ["region_id", 172], ["rgt", "0.381966011250352"], ["rgtp", 514229], ["rgtq", 1346269]]
|
1035
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1036
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1037
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 174]]
|
1038
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 174]]
|
1039
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250141"], ["lftp", 1346269], ["lftq", 3524578], ["name", ""], ["region_id", 174], ["rgt", "0.381966011250352"], ["rgtp", 514229], ["rgtq", 1346269]]
|
1040
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1041
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1042
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 174]]
|
1043
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 174]]
|
1044
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250091"], ["lftp", 2178309], ["lftq", 5702887], ["name", ""], ["region_id", 174], ["rgt", "0.381966011250141"], ["rgtp", 1346269], ["rgtq", 3524578]]
|
1045
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1046
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1047
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 176]]
|
1048
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 176]]
|
1049
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.38196601125011"], ["lftp", 3524578], ["lftq", 9227465], ["name", ""], ["region_id", 176], ["rgt", "0.381966011250141"], ["rgtp", 1346269], ["rgtq", 3524578]]
|
1050
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1051
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1052
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 176]]
|
1053
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 176]]
|
1054
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250103"], ["lftp", 5702887], ["lftq", 14930352], ["name", ""], ["region_id", 176], ["rgt", "0.38196601125011"], ["rgtp", 3524578], ["rgtq", 9227465]]
|
1055
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1056
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1057
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 178]]
|
1058
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 178]]
|
1059
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250106"], ["lftp", 9227465], ["lftq", 24157817], ["name", ""], ["region_id", 178], ["rgt", "0.38196601125011"], ["rgtp", 3524578], ["rgtq", 9227465]]
|
1060
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1061
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1062
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 178]]
|
1063
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 178]]
|
1064
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 14930352], ["lftq", 39088169], ["name", ""], ["region_id", 178], ["rgt", "0.381966011250106"], ["rgtp", 9227465], ["rgtq", 24157817]]
|
1065
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1066
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1067
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 180]]
|
1068
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 180]]
|
1069
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 24157817], ["lftq", 63245986], ["name", ""], ["region_id", 180], ["rgt", "0.381966011250106"], ["rgtp", 9227465], ["rgtq", 24157817]]
|
1070
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1071
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1072
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 180]]
|
1073
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 180]]
|
1074
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 39088169], ["lftq", 102334155], ["name", ""], ["region_id", 180], ["rgt", "0.381966011250105"], ["rgtp", 24157817], ["rgtq", 63245986]]
|
1075
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1076
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1077
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 182]]
|
1078
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 182]]
|
1079
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 63245986], ["lftq", 165580141], ["name", ""], ["region_id", 182], ["rgt", "0.381966011250105"], ["rgtp", 24157817], ["rgtq", 63245986]]
|
1080
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1081
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1082
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 182]]
|
1083
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 182]]
|
1084
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 102334155], ["lftq", 267914296], ["name", ""], ["region_id", 182], ["rgt", "0.381966011250105"], ["rgtp", 63245986], ["rgtq", 165580141]]
|
1085
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1086
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1087
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 184]]
|
1088
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 184]]
|
1089
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 165580141], ["lftq", 433494437], ["name", ""], ["region_id", 184], ["rgt", "0.381966011250105"], ["rgtp", 63245986], ["rgtq", 165580141]]
|
1090
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1091
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1092
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 184]]
|
1093
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 184]]
|
1094
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 267914296], ["lftq", 701408733], ["name", ""], ["region_id", 184], ["rgt", "0.381966011250105"], ["rgtp", 165580141], ["rgtq", 433494437]]
|
1095
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1096
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1097
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 186]]
|
1098
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 186]]
|
1099
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 433494437], ["lftq", 1134903170], ["name", ""], ["region_id", 186], ["rgt", "0.381966011250105"], ["rgtp", 165580141], ["rgtq", 433494437]]
|
1100
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1101
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1102
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 186]]
|
1103
|
+
[1m[35mRegion Load (1.7ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 186]]
|
1104
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 701408733], ["lftq", 1836311903], ["name", ""], ["region_id", 186], ["rgt", "0.381966011250105"], ["rgtp", 433494437], ["rgtq", 1134903170]]
|
1105
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1106
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
1107
|
+
[1m[35m (0.6ms)[0m BEGIN
|
1108
|
+
----------------------------------------------
|
1109
|
+
ActsAsNestedIntervalTest: test_modular_inverse
|
1110
|
+
----------------------------------------------
|
1111
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
1112
|
+
[1m[35m (0.5ms)[0m BEGIN
|
1113
|
+
-----------------------------------
|
1114
|
+
ActsAsNestedIntervalTest: test_move
|
1115
|
+
-----------------------------------
|
1116
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
1117
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1118
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1119
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1120
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 189]]
|
1121
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 189]]
|
1122
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 189], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1123
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1124
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1125
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 190]]
|
1126
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 190]]
|
1127
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 190], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1128
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1129
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1130
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 190]]
|
1131
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 190]]
|
1132
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 190], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1133
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
1134
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1135
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 190]]
|
1136
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 190]]
|
1137
|
+
[1m[35m (0.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1138
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1139
|
+
[1m[35mRegion Load (1.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 190]]
|
1140
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 191]]
|
1141
|
+
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1142
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1143
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 189]]
|
1144
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 189]]
|
1145
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Pacific"], ["region_id", 189], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1146
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1147
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1148
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 190]]
|
1149
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 193]]
|
1150
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 193]]
|
1151
|
+
[1m[35m (0.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1152
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
1153
|
+
[1m[35m (0.5ms)[0m BEGIN
|
1154
|
+
------------------------------------------------------
|
1155
|
+
ActsAsNestedIntervalTest: test_move_from_left_to_right
|
1156
|
+
------------------------------------------------------
|
1157
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1158
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1159
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1160
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1161
|
+
[1m[36mRegion Load (1.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 194]]
|
1162
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 194]]
|
1163
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "europe"], ["region_id", 194], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1164
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1165
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1166
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 194]]
|
1167
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 194]]
|
1168
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "america"], ["region_id", 194], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1169
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1170
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1171
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 196]]
|
1172
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 196]]
|
1173
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["name", "usa"], ["region_id", 196], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1174
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1175
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1176
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 197]]
|
1177
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 197]]
|
1178
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.428571428571429"], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 197], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1179
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1180
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1181
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 198]]
|
1182
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 198]]
|
1183
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.444444444444444"], ["lftp", 4], ["lftq", 9], ["name", "houston"], ["region_id", 198], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1184
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1185
|
+
[1m[36m (1.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1186
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 198]]
|
1187
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 195]]
|
1188
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 195]]
|
1189
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1190
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
1191
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1192
|
+
---------------------------------------------------------------
|
1193
|
+
ActsAsNestedIntervalTest: test_move_to_root_recomputes_interval
|
1194
|
+
---------------------------------------------------------------
|
1195
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1196
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1197
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1198
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1199
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
1200
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 200]]
|
1201
|
+
[1m[35mRegion Load (0.7ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 200]]
|
1202
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 200], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1203
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1204
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1205
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1206
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1207
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1208
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1209
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1210
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
1211
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1212
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1213
|
+
[1m[35mRegion Load (1.5ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 201]]
|
1214
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1215
|
+
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1216
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
1217
|
+
[1m[35m (0.5ms)[0m BEGIN
|
1218
|
+
---------------------------------------
|
1219
|
+
ActsAsNestedIntervalTest: test_preorder
|
1220
|
+
---------------------------------------
|
1221
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1222
|
+
[1m[35mRegion Load (1.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1223
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1224
|
+
[1m[35m (1.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1225
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1226
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 204]]
|
1227
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 204]]
|
1228
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 204], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1229
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1230
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1231
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 204]]
|
1232
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 204]]
|
1233
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 204], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1234
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1235
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1236
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 205]]
|
1237
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 205]]
|
1238
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.75"], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 205], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1239
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1240
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1241
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 205]]
|
1242
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 205]]
|
1243
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.714285714285714"], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 205], ["rgt", "0.75"], ["rgtp", 3], ["rgtq", 4]]
|
1244
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1245
|
+
[1m[36mRegion Load (2.0ms)[0m [1mSELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC[0m
|
1246
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
1247
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
1248
|
+
-----------------------------------------------------------
|
1249
|
+
ActsAsNestedIntervalTest: test_rebuild_nested_interval_tree
|
1250
|
+
-----------------------------------------------------------
|
1251
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1252
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1253
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1254
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1255
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1256
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 209]]
|
1257
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 209]]
|
1258
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 209], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1259
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1260
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1261
|
+
[1m[35mRegion Load (1.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1262
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1263
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1264
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1265
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1266
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
1267
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1268
|
+
[1m[36mSQL (2.1ms)[0m [1mUPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)[0m
|
1269
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL ORDER BY "regions"."id" ASC LIMIT 1000
|
1270
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1271
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1272
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 209[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1273
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
1274
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 209 ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
1275
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."id" = $1 LIMIT 1 [["id", 209]]
|
1276
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 209]]
|
1277
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 209]]
|
1278
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
1279
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 210 [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1280
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1281
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 210 ORDER BY "regions"."id" ASC LIMIT 1000
|
1282
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1283
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1284
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 211[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1285
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1286
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 211 ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
1287
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1288
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1289
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 212 [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
1290
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1291
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 212 ORDER BY "regions"."id" ASC LIMIT 1000
|
1292
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC[0m
|
1293
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
1294
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1295
|
+
---------------------------------------------------------
|
1296
|
+
ActsAsNestedIntervalTest: test_root_update_keeps_interval
|
1297
|
+
---------------------------------------------------------
|
1298
|
+
[1m[35m (1.0ms)[0m SAVEPOINT active_record_1
|
1299
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1300
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1301
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1302
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1303
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 213]]
|
1304
|
+
[1m[35mRegion Load (2.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 213]]
|
1305
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 213], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1306
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1307
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1308
|
+
[1m[35mRegion Load (1.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1309
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1310
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1311
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1312
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1313
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
1314
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1315
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1316
|
+
[1m[35mRegion Load (2.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" IN (216, '---
|
1317
|
+
:lock: true
|
1318
|
+
')
|
1319
|
+
PG::InvalidTextRepresentation: BŁĄD: nieprawidłowa składnia wejścia dla integer: "---
|
1320
|
+
:lock: true
|
1321
|
+
"
|
1322
|
+
LINE 1: ...egions".* FROM "regions" WHERE "regions"."id" IN (216, '---
|
1323
|
+
^
|
1324
|
+
: SELECT "regions".* FROM "regions" WHERE "regions"."id" IN (216, '---
|
1325
|
+
:lock: true
|
1326
|
+
')
|
1327
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1328
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
1329
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1330
|
+
------------------------------------
|
1331
|
+
ActsAsNestedIntervalTest: test_scope
|
1332
|
+
------------------------------------
|
1333
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1334
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1335
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1336
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1337
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1338
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 217]]
|
1339
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 217]]
|
1340
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 217], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1341
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1342
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1343
|
+
[1m[35mRegion Load (1.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1344
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["fiction", "t"], ["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Krypton"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1345
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1346
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
1347
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND (lft > 0.5 AND rgt <= 1.0)
|
1348
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
1349
|
+
[1m[35m (0.5ms)[0m BEGIN
|
1350
|
+
------------------------------------------------------
|
1351
|
+
ActsAsNestedIntervalTest: test_virtual_root_allocation
|
1352
|
+
------------------------------------------------------
|
1353
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1354
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1355
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1356
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1357
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1358
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 220]]
|
1359
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 220]]
|
1360
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 220], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1361
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1362
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1363
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1364
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1365
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1366
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1367
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1368
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
1369
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1370
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
1371
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
1372
|
+
[1m[35m (0.6ms)[0m BEGIN
|
1373
|
+
-------------------------------------------------
|
1374
|
+
ActsAsNestedIntervalTest: test_virtual_root_order
|
1375
|
+
-------------------------------------------------
|
1376
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1377
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1378
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "1"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1379
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1380
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1381
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1382
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "2"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1383
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
1384
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1385
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1386
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "3"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
1387
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1388
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
1389
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1390
|
+
[1m[35m (0.6ms)[0m BEGIN
|
1391
|
+
----------------------------------------
|
1392
|
+
ActsAsNestedIntervalTest: test_ancestors
|
1393
|
+
----------------------------------------
|
1394
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1395
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1396
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1397
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
1398
|
+
[1m[36mRegion Load (1.6ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 227]]
|
1399
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 227]]
|
1400
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 227], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1401
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1402
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1403
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 228]]
|
1404
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 228]]
|
1405
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 228], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1406
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1407
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1408
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 228]]
|
1409
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 228]]
|
1410
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 228], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1411
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1412
|
+
[1m[36mRegion Load (1.7ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)[0m
|
1413
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
|
1414
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
1415
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
|
1416
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
1417
|
+
[1m[35m (0.5ms)[0m BEGIN
|
1418
|
+
-------------------------------------------
|
1419
|
+
ActsAsNestedIntervalTest: test_append_child
|
1420
|
+
-------------------------------------------
|
1421
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
1422
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1423
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1424
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1425
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 231]]
|
1426
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 231]]
|
1427
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 231]]
|
1428
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 231], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1429
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1430
|
+
[1m[35m (1.0ms)[0m ROLLBACK
|
1431
|
+
[1m[36m (0.7ms)[0m [1mBEGIN[0m
|
1432
|
+
-------------------------------------------------
|
1433
|
+
ActsAsNestedIntervalTest: test_create_first_child
|
1434
|
+
-------------------------------------------------
|
1435
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1436
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1437
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 233]]
|
1438
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 233]]
|
1439
|
+
[1m[35mSQL (1.3ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 233], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1440
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1441
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
1442
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
1443
|
+
------------------------------------------
|
1444
|
+
ActsAsNestedIntervalTest: test_create_root
|
1445
|
+
------------------------------------------
|
1446
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1447
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1448
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1449
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL[0m
|
1450
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
1451
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1452
|
+
--------------------------------------------------
|
1453
|
+
ActsAsNestedIntervalTest: test_create_second_child
|
1454
|
+
--------------------------------------------------
|
1455
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1456
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1457
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1458
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1459
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 236]]
|
1460
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 236]]
|
1461
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 236], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1462
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1463
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1464
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 237]]
|
1465
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 237]]
|
1466
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 237], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1467
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1468
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1469
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 237]]
|
1470
|
+
[1m[36mRegion Load (3.7ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 237]]
|
1471
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 237], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1472
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1473
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
1474
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
1475
|
+
-------------------------------------------------
|
1476
|
+
ActsAsNestedIntervalTest: test_database_precision
|
1477
|
+
-------------------------------------------------
|
1478
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1479
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "root"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1480
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1481
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1482
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 240]]
|
1483
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 240]]
|
1484
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "l1"], ["region_id", 240], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1485
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1486
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1487
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 241]]
|
1488
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 241]]
|
1489
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "l2"], ["region_id", 241], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1490
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1491
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
1492
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 242]]
|
1493
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 242]]
|
1494
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.75"], ["lftp", 3], ["lftq", 4], ["name", "l3"], ["region_id", 242], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1495
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1496
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1497
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 243]]
|
1498
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 243]]
|
1499
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.8"], ["lftp", 4], ["lftq", 5], ["name", "l4"], ["region_id", 243], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1500
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1501
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1502
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 243]]
|
1503
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 241]]
|
1504
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 241]]
|
1505
|
+
[1m[36mSQL (4.3ms)[0m [1mUPDATE "regions" SET rgtp = 5 * rgtp + -3 * rgtq, rgtq = 7 * rgtp + -4 * rgtq, rgt = 1.000000000000000000000000000000 * (5 * rgtp + -3 * rgtq) / (7 * rgtp + -4 * rgtq), lftp = 5 * lftp + -3 * lftq, lftq = 7 * lftp + -4 * lftq, lft = 1.000000000000000000000000000000 * (5 * lftp + -3 * lftq) / (7 * lftp + -4 * lftq) WHERE "regions"."fiction" = 'f' AND (lft > 0.75 AND rgt <= 1.0)[0m
|
1506
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "regions" SET "lft" = $1, "lftq" = $2, "region_id" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 243 [["lft", "0.6"], ["lftq", 5], ["region_id", 241], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1507
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1508
|
+
[1m[35m (2.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE (abs(rgt - (select rgt from regions where id =243)) < 1e-16)
|
1509
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
1510
|
+
[1m[35m (0.6ms)[0m BEGIN
|
1511
|
+
------------------------------------
|
1512
|
+
ActsAsNestedIntervalTest: test_depth
|
1513
|
+
------------------------------------
|
1514
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
1515
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1516
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1517
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1518
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 245]]
|
1519
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 245]]
|
1520
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 245], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1521
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1522
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1523
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 246]]
|
1524
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 246]]
|
1525
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 246], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1526
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1527
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
1528
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 246]]
|
1529
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 246]]
|
1530
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 246], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1531
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1532
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
1533
|
+
[1m[35m (0.5ms)[0m BEGIN
|
1534
|
+
------------------------------------------
|
1535
|
+
ActsAsNestedIntervalTest: test_descendants
|
1536
|
+
------------------------------------------
|
1537
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1538
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1539
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1540
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1541
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 249]]
|
1542
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 249]]
|
1543
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 249], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1544
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1545
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1546
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 250]]
|
1547
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 250]]
|
1548
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 250], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1549
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1550
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1551
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 250]]
|
1552
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 250]]
|
1553
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 250], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1554
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1555
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.0 AND rgt <= 1.0)[0m
|
1556
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.5 AND rgt <= 1.0)
|
1557
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.6666666666666666 AND rgt <= 1.0)[0m
|
1558
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
1559
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
1560
|
+
--------------------------------------
|
1561
|
+
ActsAsNestedIntervalTest: test_destroy
|
1562
|
+
--------------------------------------
|
1563
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1564
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1565
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1566
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1567
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 253]]
|
1568
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 253]]
|
1569
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 253], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1570
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1571
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1572
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 254]]
|
1573
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 254]]
|
1574
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 254], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1575
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
1576
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1577
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 254]]
|
1578
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 254]]
|
1579
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 254], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1580
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1581
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1582
|
+
[1m[36mRegion Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "regions" WHERE "regions"."region_id" = $1 LIMIT 1[0m [["region_id", 254]]
|
1583
|
+
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1584
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
1585
|
+
[1m[35m (0.5ms)[0m BEGIN
|
1586
|
+
-------------------------------------
|
1587
|
+
ActsAsNestedIntervalTest: test_limits
|
1588
|
+
-------------------------------------
|
1589
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1590
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", ""], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1591
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1592
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1593
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 257]]
|
1594
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 257]]
|
1595
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", ""], ["region_id", 257], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1596
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1597
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1598
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 257]]
|
1599
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 257]]
|
1600
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", ""], ["region_id", 257], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1601
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1602
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1603
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 259]]
|
1604
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 259]]
|
1605
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["name", ""], ["region_id", 259], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1606
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1607
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1608
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 259]]
|
1609
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 259]]
|
1610
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.375"], ["lftp", 3], ["lftq", 8], ["name", ""], ["region_id", 259], ["rgt", "0.4"], ["rgtp", 2], ["rgtq", 5]]
|
1611
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1612
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1613
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 261]]
|
1614
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 261]]
|
1615
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.384615384615385"], ["lftp", 5], ["lftq", 13], ["name", ""], ["region_id", 261], ["rgt", "0.4"], ["rgtp", 2], ["rgtq", 5]]
|
1616
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1617
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1618
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 261]]
|
1619
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 261]]
|
1620
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.380952380952381"], ["lftp", 8], ["lftq", 21], ["name", ""], ["region_id", 261], ["rgt", "0.384615384615385"], ["rgtp", 5], ["rgtq", 13]]
|
1621
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1622
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1623
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 263]]
|
1624
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 263]]
|
1625
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.382352941176471"], ["lftp", 13], ["lftq", 34], ["name", ""], ["region_id", 263], ["rgt", "0.384615384615385"], ["rgtp", 5], ["rgtq", 13]]
|
1626
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1627
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1628
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 263]]
|
1629
|
+
[1m[36mRegion Load (1.5ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 263]]
|
1630
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381818181818182"], ["lftp", 21], ["lftq", 55], ["name", ""], ["region_id", 263], ["rgt", "0.382352941176471"], ["rgtp", 13], ["rgtq", 34]]
|
1631
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1632
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1633
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 265]]
|
1634
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 265]]
|
1635
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.382022471910112"], ["lftp", 34], ["lftq", 89], ["name", ""], ["region_id", 265], ["rgt", "0.382352941176471"], ["rgtp", 13], ["rgtq", 34]]
|
1636
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1637
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1638
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 265]]
|
1639
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 265]]
|
1640
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381944444444444"], ["lftp", 55], ["lftq", 144], ["name", ""], ["region_id", 265], ["rgt", "0.382022471910112"], ["rgtp", 34], ["rgtq", 89]]
|
1641
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1642
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1643
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 267]]
|
1644
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 267]]
|
1645
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381974248927039"], ["lftp", 89], ["lftq", 233], ["name", ""], ["region_id", 267], ["rgt", "0.382022471910112"], ["rgtp", 34], ["rgtq", 89]]
|
1646
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1647
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1648
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 267]]
|
1649
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 267]]
|
1650
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381962864721485"], ["lftp", 144], ["lftq", 377], ["name", ""], ["region_id", 267], ["rgt", "0.381974248927039"], ["rgtp", 89], ["rgtq", 233]]
|
1651
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1652
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1653
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 269]]
|
1654
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 269]]
|
1655
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381967213114754"], ["lftp", 233], ["lftq", 610], ["name", ""], ["region_id", 269], ["rgt", "0.381974248927039"], ["rgtp", 89], ["rgtq", 233]]
|
1656
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1657
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1658
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 269]]
|
1659
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 269]]
|
1660
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381965552178318"], ["lftp", 377], ["lftq", 987], ["name", ""], ["region_id", 269], ["rgt", "0.381967213114754"], ["rgtp", 233], ["rgtq", 610]]
|
1661
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1662
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1663
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 271]]
|
1664
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 271]]
|
1665
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966186599875"], ["lftp", 610], ["lftq", 1597], ["name", ""], ["region_id", 271], ["rgt", "0.381967213114754"], ["rgtp", 233], ["rgtq", 610]]
|
1666
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1667
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1668
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 271]]
|
1669
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 271]]
|
1670
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381965944272446"], ["lftp", 987], ["lftq", 2584], ["name", ""], ["region_id", 271], ["rgt", "0.381966186599875"], ["rgtp", 610], ["rgtq", 1597]]
|
1671
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1672
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1673
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 273]]
|
1674
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 273]]
|
1675
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966036833293"], ["lftp", 1597], ["lftq", 4181], ["name", ""], ["region_id", 273], ["rgt", "0.381966186599875"], ["rgtp", 610], ["rgtq", 1597]]
|
1676
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1677
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1678
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 273]]
|
1679
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 273]]
|
1680
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966001478197"], ["lftp", 2584], ["lftq", 6765], ["name", ""], ["region_id", 273], ["rgt", "0.381966036833293"], ["rgtp", 1597], ["rgtq", 4181]]
|
1681
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1682
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
1683
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 275]]
|
1684
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 275]]
|
1685
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966014982642"], ["lftp", 4181], ["lftq", 10946], ["name", ""], ["region_id", 275], ["rgt", "0.381966036833293"], ["rgtp", 1597], ["rgtq", 4181]]
|
1686
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1687
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1688
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 275]]
|
1689
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 275]]
|
1690
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966009824403"], ["lftp", 6765], ["lftq", 17711], ["name", ""], ["region_id", 275], ["rgt", "0.381966014982642"], ["rgtp", 4181], ["rgtq", 10946]]
|
1691
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1692
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
1693
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 277]]
|
1694
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 277]]
|
1695
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011794675"], ["lftp", 10946], ["lftq", 28657], ["name", ""], ["region_id", 277], ["rgt", "0.381966014982642"], ["rgtp", 4181], ["rgtq", 10946]]
|
1696
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1697
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1698
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 277]]
|
1699
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 277]]
|
1700
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011042098"], ["lftp", 17711], ["lftq", 46368], ["name", ""], ["region_id", 277], ["rgt", "0.381966011794675"], ["rgtp", 10946], ["rgtq", 28657]]
|
1701
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1702
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1703
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 279]]
|
1704
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 279]]
|
1705
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011329557"], ["lftp", 28657], ["lftq", 75025], ["name", ""], ["region_id", 279], ["rgt", "0.381966011794675"], ["rgtp", 10946], ["rgtq", 28657]]
|
1706
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1707
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1708
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 279]]
|
1709
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 279]]
|
1710
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011219757"], ["lftp", 46368], ["lftq", 121393], ["name", ""], ["region_id", 279], ["rgt", "0.381966011329557"], ["rgtp", 28657], ["rgtq", 75025]]
|
1711
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1712
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1713
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 281]]
|
1714
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 281]]
|
1715
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011261697"], ["lftp", 75025], ["lftq", 196418], ["name", ""], ["region_id", 281], ["rgt", "0.381966011329557"], ["rgtp", 28657], ["rgtq", 75025]]
|
1716
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1717
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1718
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 281]]
|
1719
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 281]]
|
1720
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011245677"], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 281], ["rgt", "0.381966011261697"], ["rgtp", 75025], ["rgtq", 196418]]
|
1721
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1722
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1723
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 283]]
|
1724
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 283]]
|
1725
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011251796"], ["lftp", 196418], ["lftq", 514229], ["name", ""], ["region_id", 283], ["rgt", "0.381966011261697"], ["rgtp", 75025], ["rgtq", 196418]]
|
1726
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1727
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1728
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 283]]
|
1729
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 283]]
|
1730
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011249459"], ["lftp", 317811], ["lftq", 832040], ["name", ""], ["region_id", 283], ["rgt", "0.381966011251796"], ["rgtp", 196418], ["rgtq", 514229]]
|
1731
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1732
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1733
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 285]]
|
1734
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 285]]
|
1735
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250352"], ["lftp", 514229], ["lftq", 1346269], ["name", ""], ["region_id", 285], ["rgt", "0.381966011251796"], ["rgtp", 196418], ["rgtq", 514229]]
|
1736
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
1737
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1738
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 285]]
|
1739
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 285]]
|
1740
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250011"], ["lftp", 832040], ["lftq", 2178309], ["name", ""], ["region_id", 285], ["rgt", "0.381966011250352"], ["rgtp", 514229], ["rgtq", 1346269]]
|
1741
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1742
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1743
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 287]]
|
1744
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 287]]
|
1745
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250141"], ["lftp", 1346269], ["lftq", 3524578], ["name", ""], ["region_id", 287], ["rgt", "0.381966011250352"], ["rgtp", 514229], ["rgtq", 1346269]]
|
1746
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1747
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1748
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 287]]
|
1749
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 287]]
|
1750
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250091"], ["lftp", 2178309], ["lftq", 5702887], ["name", ""], ["region_id", 287], ["rgt", "0.381966011250141"], ["rgtp", 1346269], ["rgtq", 3524578]]
|
1751
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1752
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1753
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 289]]
|
1754
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 289]]
|
1755
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.38196601125011"], ["lftp", 3524578], ["lftq", 9227465], ["name", ""], ["region_id", 289], ["rgt", "0.381966011250141"], ["rgtp", 1346269], ["rgtq", 3524578]]
|
1756
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1757
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1758
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 289]]
|
1759
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 289]]
|
1760
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250103"], ["lftp", 5702887], ["lftq", 14930352], ["name", ""], ["region_id", 289], ["rgt", "0.38196601125011"], ["rgtp", 3524578], ["rgtq", 9227465]]
|
1761
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1762
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1763
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 291]]
|
1764
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 291]]
|
1765
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250106"], ["lftp", 9227465], ["lftq", 24157817], ["name", ""], ["region_id", 291], ["rgt", "0.38196601125011"], ["rgtp", 3524578], ["rgtq", 9227465]]
|
1766
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
1767
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1768
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 291]]
|
1769
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 291]]
|
1770
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 14930352], ["lftq", 39088169], ["name", ""], ["region_id", 291], ["rgt", "0.381966011250106"], ["rgtp", 9227465], ["rgtq", 24157817]]
|
1771
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1772
|
+
[1m[35m (1.5ms)[0m SAVEPOINT active_record_1
|
1773
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 293]]
|
1774
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 293]]
|
1775
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 24157817], ["lftq", 63245986], ["name", ""], ["region_id", 293], ["rgt", "0.381966011250106"], ["rgtp", 9227465], ["rgtq", 24157817]]
|
1776
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1777
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1778
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 293]]
|
1779
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 293]]
|
1780
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 39088169], ["lftq", 102334155], ["name", ""], ["region_id", 293], ["rgt", "0.381966011250105"], ["rgtp", 24157817], ["rgtq", 63245986]]
|
1781
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1782
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1783
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 295]]
|
1784
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 295]]
|
1785
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 63245986], ["lftq", 165580141], ["name", ""], ["region_id", 295], ["rgt", "0.381966011250105"], ["rgtp", 24157817], ["rgtq", 63245986]]
|
1786
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1787
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1788
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 295]]
|
1789
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 295]]
|
1790
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 102334155], ["lftq", 267914296], ["name", ""], ["region_id", 295], ["rgt", "0.381966011250105"], ["rgtp", 63245986], ["rgtq", 165580141]]
|
1791
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1792
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1793
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 297]]
|
1794
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 297]]
|
1795
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 165580141], ["lftq", 433494437], ["name", ""], ["region_id", 297], ["rgt", "0.381966011250105"], ["rgtp", 63245986], ["rgtq", 165580141]]
|
1796
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1797
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1798
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 297]]
|
1799
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 297]]
|
1800
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 267914296], ["lftq", 701408733], ["name", ""], ["region_id", 297], ["rgt", "0.381966011250105"], ["rgtp", 165580141], ["rgtq", 433494437]]
|
1801
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1802
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1803
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 299]]
|
1804
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 299]]
|
1805
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 433494437], ["lftq", 1134903170], ["name", ""], ["region_id", 299], ["rgt", "0.381966011250105"], ["rgtp", 165580141], ["rgtq", 433494437]]
|
1806
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1807
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1808
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 299]]
|
1809
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 299]]
|
1810
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 701408733], ["lftq", 1836311903], ["name", ""], ["region_id", 299], ["rgt", "0.381966011250105"], ["rgtp", 433494437], ["rgtq", 1134903170]]
|
1811
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1812
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
1813
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1814
|
+
----------------------------------------------
|
1815
|
+
ActsAsNestedIntervalTest: test_modular_inverse
|
1816
|
+
----------------------------------------------
|
1817
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
1818
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1819
|
+
-----------------------------------
|
1820
|
+
ActsAsNestedIntervalTest: test_move
|
1821
|
+
-----------------------------------
|
1822
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1823
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1824
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1825
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1826
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 302]]
|
1827
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 302]]
|
1828
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 302], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1829
|
+
[1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1830
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1831
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 303]]
|
1832
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 303]]
|
1833
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 303], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1834
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
1835
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1836
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 303]]
|
1837
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 303]]
|
1838
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 303], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1839
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1840
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1841
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 303]]
|
1842
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 303]]
|
1843
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1844
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1845
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 303]]
|
1846
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 304]]
|
1847
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1848
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1849
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 302]]
|
1850
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 302]]
|
1851
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Pacific"], ["region_id", 302], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1852
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1853
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1854
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 303]]
|
1855
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 306]]
|
1856
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 306]]
|
1857
|
+
[1m[36mSQL (1.7ms)[0m [1mUPDATE "regions" SET rgtp = 0 * rgtp + 1 * rgtq, rgtq = -1 * rgtp + 3 * rgtq, rgt = 1.000000000000000000000000000000 * (0 * rgtp + 1 * rgtq) / (-1 * rgtp + 3 * rgtq), lftp = 0 * lftp + 1 * lftq, lftq = -1 * lftp + 3 * lftq, lft = 1.000000000000000000000000000000 * (0 * lftp + 1 * lftq) / (-1 * lftp + 3 * lftq) WHERE "regions"."fiction" = 'f' AND (lft > 0.5 AND rgt <= 1.0)[0m
|
1858
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "region_id" = $4, "rgt" = $5, "rgtq" = $6 WHERE "regions"."id" = 303 [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["region_id", 306], ["rgt", "0.5"], ["rgtq", 2]]
|
1859
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1860
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 304]]
|
1861
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 305]]
|
1862
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
1863
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
1864
|
+
------------------------------------------------------
|
1865
|
+
ActsAsNestedIntervalTest: test_move_from_left_to_right
|
1866
|
+
------------------------------------------------------
|
1867
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1868
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1869
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
1870
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1871
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 307]]
|
1872
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 307]]
|
1873
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "europe"], ["region_id", 307], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1874
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1875
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1876
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 307]]
|
1877
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 307]]
|
1878
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "america"], ["region_id", 307], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1879
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1880
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1881
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 309]]
|
1882
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 309]]
|
1883
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["name", "usa"], ["region_id", 309], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1884
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1885
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1886
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 310]]
|
1887
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 310]]
|
1888
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.428571428571429"], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 310], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1889
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1890
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1891
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 311]]
|
1892
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 311]]
|
1893
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.444444444444444"], ["lftp", 4], ["lftq", 9], ["name", "houston"], ["region_id", 311], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1894
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1895
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1896
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 311]]
|
1897
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 308]]
|
1898
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 308]]
|
1899
|
+
[1m[35mSQL (1.8ms)[0m UPDATE "regions" SET rgtp = 3 * rgtp + -1 * rgtq, rgtq = 1 * rgtp + 0 * rgtq, rgt = 1.000000000000000000000000000000 * (3 * rgtp + -1 * rgtq) / (1 * rgtp + 0 * rgtq), lftp = 3 * lftp + -1 * lftq, lftq = 1 * lftp + 0 * lftq, lft = 1.000000000000000000000000000000 * (3 * lftp + -1 * lftq) / (1 * lftp + 0 * lftq) WHERE "regions"."fiction" = 'f' AND (lft > 0.42857142857142855 AND rgt <= 0.5)
|
1900
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "region_id" = $4, "rgt" = $5, "rgtq" = $6 WHERE "regions"."id" = 311[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["region_id", 308], ["rgt", "1.0"], ["rgtq", 1]]
|
1901
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1902
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 312]]
|
1903
|
+
[1m[35m (1.1ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.75 AND rgt <= 1.0)
|
1904
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 311]]
|
1905
|
+
[1m[35m (1.2ms)[0m SELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lft > 0.6666666666666666 AND rgt <= 1.0)
|
1906
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
1907
|
+
[1m[35m (0.5ms)[0m BEGIN
|
1908
|
+
---------------------------------------------------------------
|
1909
|
+
ActsAsNestedIntervalTest: test_move_to_root_recomputes_interval
|
1910
|
+
---------------------------------------------------------------
|
1911
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1912
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1913
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1914
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1915
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1916
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 313]]
|
1917
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 313]]
|
1918
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 313], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1919
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1920
|
+
[1m[35m (1.1ms)[0m SAVEPOINT active_record_1
|
1921
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1922
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1923
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1924
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1925
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1926
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
1927
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1928
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1929
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 314]]
|
1930
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1931
|
+
[1m[36mSQL (1.9ms)[0m [1mUPDATE "regions" SET rgtp = 2 * rgtp + -1 * rgtq, rgtq = 7 * rgtp + -3 * rgtq, rgt = 1.000000000000000000000000000000 * (2 * rgtp + -1 * rgtq) / (7 * rgtp + -3 * rgtq), lftp = 2 * lftp + -1 * lftq, lftq = 7 * lftp + -3 * lftq, lft = 1.000000000000000000000000000000 * (2 * lftp + -1 * lftq) / (7 * lftp + -3 * lftq) WHERE "regions"."fiction" = 'f' AND (lft > 0.6666666666666666 AND rgt <= 1.0)[0m
|
1932
|
+
[1m[35mSQL (1.4ms)[0m UPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "region_id" = $4, "rgt" = $5, "rgtq" = $6 WHERE "regions"."id" = 314 [["lft", "0.2"], ["lftp", 1], ["lftq", 5], ["region_id", nil], ["rgt", "0.25"], ["rgtq", 4]]
|
1933
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1934
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
1935
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
1936
|
+
---------------------------------------
|
1937
|
+
ActsAsNestedIntervalTest: test_preorder
|
1938
|
+
---------------------------------------
|
1939
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1940
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1941
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1942
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1943
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
1944
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 317]]
|
1945
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 317]]
|
1946
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 317], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1947
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1948
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1949
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 317]]
|
1950
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 317]]
|
1951
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 317], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
1952
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1953
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1954
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 318]]
|
1955
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 318]]
|
1956
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.75"], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 318], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1957
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1958
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1959
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 318]]
|
1960
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 318]]
|
1961
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.714285714285714"], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 318], ["rgt", "0.75"], ["rgtp", 3], ["rgtq", 4]]
|
1962
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1963
|
+
[1m[35mRegion Load (2.2ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
1964
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
1965
|
+
[1m[35m (0.6ms)[0m BEGIN
|
1966
|
+
-----------------------------------------------------------
|
1967
|
+
ActsAsNestedIntervalTest: test_rebuild_nested_interval_tree
|
1968
|
+
-----------------------------------------------------------
|
1969
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1970
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1971
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1972
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1973
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1974
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 322]]
|
1975
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 322]]
|
1976
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 322], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1977
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1978
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1979
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1980
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
1981
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1982
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
1983
|
+
[1m[36mRegion Load (1.6ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
1984
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
1985
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1986
|
+
[1m[35mSQL (1.3ms)[0m UPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)
|
1987
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
1988
|
+
[1m[35mRegion Load (1.6ms)[0m SELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
1989
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
1990
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 322 [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1991
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1992
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 322 ORDER BY "regions"."id" ASC LIMIT 1000
|
1993
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."id" = $1 LIMIT 1[0m [["id", 322]]
|
1994
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 322]]
|
1995
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 322]]
|
1996
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
1997
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 323[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
1998
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
1999
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 323 ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
2000
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2001
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2002
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 324 [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2003
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2004
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 324 ORDER BY "regions"."id" ASC LIMIT 1000
|
2005
|
+
[1m[36mRegion Load (1.5ms)[0m [1mSELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2006
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
2007
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 325[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2008
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2009
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 325 ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
2010
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
2011
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
2012
|
+
[1m[35m (0.6ms)[0m BEGIN
|
2013
|
+
---------------------------------------------------------
|
2014
|
+
ActsAsNestedIntervalTest: test_root_update_keeps_interval
|
2015
|
+
---------------------------------------------------------
|
2016
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2017
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2018
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2019
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2020
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2021
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 326]]
|
2022
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 326]]
|
2023
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 326], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2024
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2025
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2026
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2027
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2028
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2029
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2030
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2031
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2032
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2033
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2034
|
+
[1m[36mRegion Load (3.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" IN (329, '---
|
2035
|
+
:lock: true
|
2036
|
+
')[0m
|
2037
|
+
PG::InvalidTextRepresentation: BŁĄD: nieprawidłowa składnia wejścia dla integer: "---
|
2038
|
+
:lock: true
|
2039
|
+
"
|
2040
|
+
LINE 1: ...egions".* FROM "regions" WHERE "regions"."id" IN (329, '---
|
2041
|
+
^
|
2042
|
+
: SELECT "regions".* FROM "regions" WHERE "regions"."id" IN (329, '---
|
2043
|
+
:lock: true
|
2044
|
+
')
|
2045
|
+
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2046
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
2047
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2048
|
+
------------------------------------
|
2049
|
+
ActsAsNestedIntervalTest: test_scope
|
2050
|
+
------------------------------------
|
2051
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2052
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2053
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2054
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2055
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2056
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 330]]
|
2057
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 330]]
|
2058
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 330], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2059
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2060
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2061
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2062
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["fiction", "t"], ["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Krypton"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2063
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2064
|
+
[1m[35mRegion Load (1.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
|
2065
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND (lft > 0.5 AND rgt <= 1.0)[0m
|
2066
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
2067
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2068
|
+
------------------------------------------------------
|
2069
|
+
ActsAsNestedIntervalTest: test_virtual_root_allocation
|
2070
|
+
------------------------------------------------------
|
2071
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2072
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2073
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2074
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2075
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2076
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 333]]
|
2077
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 333]]
|
2078
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 333], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2079
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2080
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2081
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2082
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2083
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2084
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2085
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2086
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2087
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
2088
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC[0m
|
2089
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
2090
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2091
|
+
-------------------------------------------------
|
2092
|
+
ActsAsNestedIntervalTest: test_virtual_root_order
|
2093
|
+
-------------------------------------------------
|
2094
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2095
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2096
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "1"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2097
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2098
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2099
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2100
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "2"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2101
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2102
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2103
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2104
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "3"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2105
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2106
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
2107
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2108
|
+
[1m[35m (0.6ms)[0m BEGIN
|
2109
|
+
----------------------------------------
|
2110
|
+
ActsAsNestedIntervalTest: test_ancestors
|
2111
|
+
----------------------------------------
|
2112
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2113
|
+
[1m[35mSQL (1.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2114
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2115
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2116
|
+
[1m[36mRegion Load (1.5ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 340]]
|
2117
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 340]]
|
2118
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 340], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2119
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2120
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2121
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 341]]
|
2122
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 341]]
|
2123
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 341], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2124
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2125
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2126
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 341]]
|
2127
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 341]]
|
2128
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 341], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
2129
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2130
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1)[0m
|
2131
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 1 AND lftp = 0)
|
2132
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
2133
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)
|
2134
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
2135
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2136
|
+
-------------------------------------------
|
2137
|
+
ActsAsNestedIntervalTest: test_append_child
|
2138
|
+
-------------------------------------------
|
2139
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2140
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2141
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2142
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2143
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 344]]
|
2144
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 344]]
|
2145
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 344]]
|
2146
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 344], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2147
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2148
|
+
[1m[35m (1.2ms)[0m ROLLBACK
|
2149
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2150
|
+
-------------------------------------------------
|
2151
|
+
ActsAsNestedIntervalTest: test_create_first_child
|
2152
|
+
-------------------------------------------------
|
2153
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2154
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2155
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 346]]
|
2156
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 346]]
|
2157
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 346], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2158
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2159
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
2160
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2161
|
+
------------------------------------------
|
2162
|
+
ActsAsNestedIntervalTest: test_create_root
|
2163
|
+
------------------------------------------
|
2164
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2165
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2166
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2167
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL[0m
|
2168
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
2169
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2170
|
+
--------------------------------------------------
|
2171
|
+
ActsAsNestedIntervalTest: test_create_second_child
|
2172
|
+
--------------------------------------------------
|
2173
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2174
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2175
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2176
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2177
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 349]]
|
2178
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 349]]
|
2179
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 349], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2180
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2181
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2182
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 350]]
|
2183
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 350]]
|
2184
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 350], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2185
|
+
[1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2186
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2187
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 350]]
|
2188
|
+
[1m[36mRegion Load (2.7ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 350]]
|
2189
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 350], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
2190
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2191
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
2192
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2193
|
+
-------------------------------------------------
|
2194
|
+
ActsAsNestedIntervalTest: test_database_precision
|
2195
|
+
-------------------------------------------------
|
2196
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2197
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "root"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2198
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2199
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2200
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 353]]
|
2201
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 353]]
|
2202
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "l1"], ["region_id", 353], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2203
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2204
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2205
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 354]]
|
2206
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 354]]
|
2207
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "l2"], ["region_id", 354], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2208
|
+
[1m[35m (0.9ms)[0m RELEASE SAVEPOINT active_record_1
|
2209
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2210
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 355]]
|
2211
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 355]]
|
2212
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.75"], ["lftp", 3], ["lftq", 4], ["name", "l3"], ["region_id", 355], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2213
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2214
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
2215
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 356]]
|
2216
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 356]]
|
2217
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.8"], ["lftp", 4], ["lftq", 5], ["name", "l4"], ["region_id", 356], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2218
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2219
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2220
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 356]]
|
2221
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 354]]
|
2222
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 354]]
|
2223
|
+
[1m[36mSQL (3.2ms)[0m [1mUPDATE "regions" SET rgtp = 5 * rgtp + -3 * rgtq, rgtq = 7 * rgtp + -4 * rgtq, rgt = 1.000000000000000000000000000000 * (5 * rgtp + -3 * rgtq) / (7 * rgtp + -4 * rgtq), lftp = 5 * lftp + -3 * lftq, lftq = 7 * lftp + -4 * lftq, lft = 1.000000000000000000000000000000 * (5 * lftp + -3 * lftq) / (7 * lftp + -4 * lftq) WHERE "regions"."fiction" = 'f' AND (lftp > 3 AND lft BETWEEN 0.75 AND 1.0)[0m
|
2224
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "regions" SET "lft" = $1, "lftq" = $2, "region_id" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 356 [["lft", "0.6"], ["lftq", 5], ["region_id", 354], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
2225
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2226
|
+
[1m[35m (2.3ms)[0m SELECT COUNT(*) FROM "regions" WHERE (abs(rgt - (select rgt from regions where id =356)) < 1e-16)
|
2227
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
2228
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2229
|
+
------------------------------------
|
2230
|
+
ActsAsNestedIntervalTest: test_depth
|
2231
|
+
------------------------------------
|
2232
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2233
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2234
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2235
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2236
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 358]]
|
2237
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 358]]
|
2238
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 358], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2239
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2240
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2241
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 359]]
|
2242
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 359]]
|
2243
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 359], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2244
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2245
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2246
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 359]]
|
2247
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 359]]
|
2248
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 359], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
2249
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2250
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
2251
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2252
|
+
------------------------------------------
|
2253
|
+
ActsAsNestedIntervalTest: test_descendants
|
2254
|
+
------------------------------------------
|
2255
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2256
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2257
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2258
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2259
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 362]]
|
2260
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 362]]
|
2261
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 362], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2262
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2263
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2264
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 363]]
|
2265
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 363]]
|
2266
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 363], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2267
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2268
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2269
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 363]]
|
2270
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 363]]
|
2271
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 363], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
2272
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2273
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 0 AND lft BETWEEN 0.0 AND 1.0)[0m
|
2274
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 1 AND lft BETWEEN 0.5 AND 1.0)
|
2275
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 2 AND lft BETWEEN 0.6666666666666666 AND 1.0)[0m
|
2276
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 3 AND lft BETWEEN 0.6 AND 0.6666666666666666)
|
2277
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
2278
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2279
|
+
--------------------------------------
|
2280
|
+
ActsAsNestedIntervalTest: test_destroy
|
2281
|
+
--------------------------------------
|
2282
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2283
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2284
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2285
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2286
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 366]]
|
2287
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 366]]
|
2288
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 366], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2289
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2290
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2291
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 367]]
|
2292
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 367]]
|
2293
|
+
[1m[35mSQL (1.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 367], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2294
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2295
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2296
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 367]]
|
2297
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 367]]
|
2298
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 367], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
2299
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
2300
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2301
|
+
[1m[35mRegion Exists (0.9ms)[0m SELECT 1 AS one FROM "regions" WHERE "regions"."region_id" = $1 LIMIT 1 [["region_id", 367]]
|
2302
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2303
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
2304
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2305
|
+
-------------------------------------
|
2306
|
+
ActsAsNestedIntervalTest: test_limits
|
2307
|
+
-------------------------------------
|
2308
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2309
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", ""], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2310
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
2311
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
2312
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 370]]
|
2313
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 370]]
|
2314
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", ""], ["region_id", 370], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2315
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2316
|
+
[1m[35m (1.3ms)[0m SAVEPOINT active_record_1
|
2317
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 370]]
|
2318
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 370]]
|
2319
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", ""], ["region_id", 370], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2320
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2321
|
+
[1m[36m (1.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
2322
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 372]]
|
2323
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 372]]
|
2324
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["name", ""], ["region_id", 372], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2325
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2326
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2327
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 372]]
|
2328
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 372]]
|
2329
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.375"], ["lftp", 3], ["lftq", 8], ["name", ""], ["region_id", 372], ["rgt", "0.4"], ["rgtp", 2], ["rgtq", 5]]
|
2330
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2331
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2332
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 374]]
|
2333
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 374]]
|
2334
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.384615384615385"], ["lftp", 5], ["lftq", 13], ["name", ""], ["region_id", 374], ["rgt", "0.4"], ["rgtp", 2], ["rgtq", 5]]
|
2335
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2336
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2337
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 374]]
|
2338
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 374]]
|
2339
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.380952380952381"], ["lftp", 8], ["lftq", 21], ["name", ""], ["region_id", 374], ["rgt", "0.384615384615385"], ["rgtp", 5], ["rgtq", 13]]
|
2340
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2341
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2342
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 376]]
|
2343
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 376]]
|
2344
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.382352941176471"], ["lftp", 13], ["lftq", 34], ["name", ""], ["region_id", 376], ["rgt", "0.384615384615385"], ["rgtp", 5], ["rgtq", 13]]
|
2345
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2346
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2347
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 376]]
|
2348
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 376]]
|
2349
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381818181818182"], ["lftp", 21], ["lftq", 55], ["name", ""], ["region_id", 376], ["rgt", "0.382352941176471"], ["rgtp", 13], ["rgtq", 34]]
|
2350
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2351
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2352
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 378]]
|
2353
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 378]]
|
2354
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.382022471910112"], ["lftp", 34], ["lftq", 89], ["name", ""], ["region_id", 378], ["rgt", "0.382352941176471"], ["rgtp", 13], ["rgtq", 34]]
|
2355
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2356
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2357
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 378]]
|
2358
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 378]]
|
2359
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381944444444444"], ["lftp", 55], ["lftq", 144], ["name", ""], ["region_id", 378], ["rgt", "0.382022471910112"], ["rgtp", 34], ["rgtq", 89]]
|
2360
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2361
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2362
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 380]]
|
2363
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 380]]
|
2364
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381974248927039"], ["lftp", 89], ["lftq", 233], ["name", ""], ["region_id", 380], ["rgt", "0.382022471910112"], ["rgtp", 34], ["rgtq", 89]]
|
2365
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2366
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2367
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 380]]
|
2368
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 380]]
|
2369
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381962864721485"], ["lftp", 144], ["lftq", 377], ["name", ""], ["region_id", 380], ["rgt", "0.381974248927039"], ["rgtp", 89], ["rgtq", 233]]
|
2370
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2371
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2372
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 382]]
|
2373
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 382]]
|
2374
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381967213114754"], ["lftp", 233], ["lftq", 610], ["name", ""], ["region_id", 382], ["rgt", "0.381974248927039"], ["rgtp", 89], ["rgtq", 233]]
|
2375
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2376
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2377
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 382]]
|
2378
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 382]]
|
2379
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381965552178318"], ["lftp", 377], ["lftq", 987], ["name", ""], ["region_id", 382], ["rgt", "0.381967213114754"], ["rgtp", 233], ["rgtq", 610]]
|
2380
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2381
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2382
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 384]]
|
2383
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 384]]
|
2384
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966186599875"], ["lftp", 610], ["lftq", 1597], ["name", ""], ["region_id", 384], ["rgt", "0.381967213114754"], ["rgtp", 233], ["rgtq", 610]]
|
2385
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2386
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2387
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 384]]
|
2388
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 384]]
|
2389
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381965944272446"], ["lftp", 987], ["lftq", 2584], ["name", ""], ["region_id", 384], ["rgt", "0.381966186599875"], ["rgtp", 610], ["rgtq", 1597]]
|
2390
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2391
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2392
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 386]]
|
2393
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 386]]
|
2394
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966036833293"], ["lftp", 1597], ["lftq", 4181], ["name", ""], ["region_id", 386], ["rgt", "0.381966186599875"], ["rgtp", 610], ["rgtq", 1597]]
|
2395
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2396
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2397
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 386]]
|
2398
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 386]]
|
2399
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966001478197"], ["lftp", 2584], ["lftq", 6765], ["name", ""], ["region_id", 386], ["rgt", "0.381966036833293"], ["rgtp", 1597], ["rgtq", 4181]]
|
2400
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2401
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2402
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 388]]
|
2403
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 388]]
|
2404
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966014982642"], ["lftp", 4181], ["lftq", 10946], ["name", ""], ["region_id", 388], ["rgt", "0.381966036833293"], ["rgtp", 1597], ["rgtq", 4181]]
|
2405
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2406
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2407
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 388]]
|
2408
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 388]]
|
2409
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966009824403"], ["lftp", 6765], ["lftq", 17711], ["name", ""], ["region_id", 388], ["rgt", "0.381966014982642"], ["rgtp", 4181], ["rgtq", 10946]]
|
2410
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2411
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2412
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 390]]
|
2413
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 390]]
|
2414
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011794675"], ["lftp", 10946], ["lftq", 28657], ["name", ""], ["region_id", 390], ["rgt", "0.381966014982642"], ["rgtp", 4181], ["rgtq", 10946]]
|
2415
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2416
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2417
|
+
[1m[36mRegion Load (1.4ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 390]]
|
2418
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 390]]
|
2419
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011042098"], ["lftp", 17711], ["lftq", 46368], ["name", ""], ["region_id", 390], ["rgt", "0.381966011794675"], ["rgtp", 10946], ["rgtq", 28657]]
|
2420
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2421
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2422
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 392]]
|
2423
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 392]]
|
2424
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011329557"], ["lftp", 28657], ["lftq", 75025], ["name", ""], ["region_id", 392], ["rgt", "0.381966011794675"], ["rgtp", 10946], ["rgtq", 28657]]
|
2425
|
+
[1m[36m (1.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2426
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2427
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 392]]
|
2428
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 392]]
|
2429
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011219757"], ["lftp", 46368], ["lftq", 121393], ["name", ""], ["region_id", 392], ["rgt", "0.381966011329557"], ["rgtp", 28657], ["rgtq", 75025]]
|
2430
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2431
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
2432
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 394]]
|
2433
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 394]]
|
2434
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011261697"], ["lftp", 75025], ["lftq", 196418], ["name", ""], ["region_id", 394], ["rgt", "0.381966011329557"], ["rgtp", 28657], ["rgtq", 75025]]
|
2435
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2436
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2437
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 394]]
|
2438
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 394]]
|
2439
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011245677"], ["lftp", 121393], ["lftq", 317811], ["name", ""], ["region_id", 394], ["rgt", "0.381966011261697"], ["rgtp", 75025], ["rgtq", 196418]]
|
2440
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2441
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2442
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 396]]
|
2443
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 396]]
|
2444
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011251796"], ["lftp", 196418], ["lftq", 514229], ["name", ""], ["region_id", 396], ["rgt", "0.381966011261697"], ["rgtp", 75025], ["rgtq", 196418]]
|
2445
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2446
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2447
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 396]]
|
2448
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 396]]
|
2449
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011249459"], ["lftp", 317811], ["lftq", 832040], ["name", ""], ["region_id", 396], ["rgt", "0.381966011251796"], ["rgtp", 196418], ["rgtq", 514229]]
|
2450
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2451
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2452
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 398]]
|
2453
|
+
[1m[36mRegion Load (1.0ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 398]]
|
2454
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250352"], ["lftp", 514229], ["lftq", 1346269], ["name", ""], ["region_id", 398], ["rgt", "0.381966011251796"], ["rgtp", 196418], ["rgtq", 514229]]
|
2455
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2456
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2457
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 398]]
|
2458
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 398]]
|
2459
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250011"], ["lftp", 832040], ["lftq", 2178309], ["name", ""], ["region_id", 398], ["rgt", "0.381966011250352"], ["rgtp", 514229], ["rgtq", 1346269]]
|
2460
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2461
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2462
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 400]]
|
2463
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 400]]
|
2464
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250141"], ["lftp", 1346269], ["lftq", 3524578], ["name", ""], ["region_id", 400], ["rgt", "0.381966011250352"], ["rgtp", 514229], ["rgtq", 1346269]]
|
2465
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2466
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2467
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 400]]
|
2468
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 400]]
|
2469
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250091"], ["lftp", 2178309], ["lftq", 5702887], ["name", ""], ["region_id", 400], ["rgt", "0.381966011250141"], ["rgtp", 1346269], ["rgtq", 3524578]]
|
2470
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2471
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2472
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 402]]
|
2473
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 402]]
|
2474
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.38196601125011"], ["lftp", 3524578], ["lftq", 9227465], ["name", ""], ["region_id", 402], ["rgt", "0.381966011250141"], ["rgtp", 1346269], ["rgtq", 3524578]]
|
2475
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2476
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2477
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 402]]
|
2478
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 402]]
|
2479
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250103"], ["lftp", 5702887], ["lftq", 14930352], ["name", ""], ["region_id", 402], ["rgt", "0.38196601125011"], ["rgtp", 3524578], ["rgtq", 9227465]]
|
2480
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2481
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2482
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 404]]
|
2483
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 404]]
|
2484
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250106"], ["lftp", 9227465], ["lftq", 24157817], ["name", ""], ["region_id", 404], ["rgt", "0.38196601125011"], ["rgtp", 3524578], ["rgtq", 9227465]]
|
2485
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2486
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2487
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 404]]
|
2488
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 404]]
|
2489
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 14930352], ["lftq", 39088169], ["name", ""], ["region_id", 404], ["rgt", "0.381966011250106"], ["rgtp", 9227465], ["rgtq", 24157817]]
|
2490
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2491
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2492
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 406]]
|
2493
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 406]]
|
2494
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 24157817], ["lftq", 63245986], ["name", ""], ["region_id", 406], ["rgt", "0.381966011250106"], ["rgtp", 9227465], ["rgtq", 24157817]]
|
2495
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2496
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2497
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 406]]
|
2498
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 406]]
|
2499
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 39088169], ["lftq", 102334155], ["name", ""], ["region_id", 406], ["rgt", "0.381966011250105"], ["rgtp", 24157817], ["rgtq", 63245986]]
|
2500
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2501
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
2502
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 408]]
|
2503
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 408]]
|
2504
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 63245986], ["lftq", 165580141], ["name", ""], ["region_id", 408], ["rgt", "0.381966011250105"], ["rgtp", 24157817], ["rgtq", 63245986]]
|
2505
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2506
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2507
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 408]]
|
2508
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 408]]
|
2509
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 102334155], ["lftq", 267914296], ["name", ""], ["region_id", 408], ["rgt", "0.381966011250105"], ["rgtp", 63245986], ["rgtq", 165580141]]
|
2510
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
2511
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2512
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 410]]
|
2513
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 410]]
|
2514
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 165580141], ["lftq", 433494437], ["name", ""], ["region_id", 410], ["rgt", "0.381966011250105"], ["rgtp", 63245986], ["rgtq", 165580141]]
|
2515
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2516
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2517
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 410]]
|
2518
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 410]]
|
2519
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 267914296], ["lftq", 701408733], ["name", ""], ["region_id", 410], ["rgt", "0.381966011250105"], ["rgtp", 165580141], ["rgtq", 433494437]]
|
2520
|
+
[1m[35m (1.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2521
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2522
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 412]]
|
2523
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 412]]
|
2524
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.381966011250105"], ["lftp", 433494437], ["lftq", 1134903170], ["name", ""], ["region_id", 412], ["rgt", "0.381966011250105"], ["rgtp", 165580141], ["rgtq", 433494437]]
|
2525
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2526
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2527
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 412]]
|
2528
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 412]]
|
2529
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.381966011250105"], ["lftp", 701408733], ["lftq", 1836311903], ["name", ""], ["region_id", 412], ["rgt", "0.381966011250105"], ["rgtp", 433494437], ["rgtq", 1134903170]]
|
2530
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2531
|
+
[1m[36m (1.7ms)[0m [1mROLLBACK[0m
|
2532
|
+
[1m[35m (0.7ms)[0m BEGIN
|
2533
|
+
----------------------------------------------
|
2534
|
+
ActsAsNestedIntervalTest: test_modular_inverse
|
2535
|
+
----------------------------------------------
|
2536
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
2537
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2538
|
+
-----------------------------------
|
2539
|
+
ActsAsNestedIntervalTest: test_move
|
2540
|
+
-----------------------------------
|
2541
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2542
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2543
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2544
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2545
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 415]]
|
2546
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 415]]
|
2547
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Oceania"], ["region_id", 415], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2548
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2549
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2550
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 416]]
|
2551
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 416]]
|
2552
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Australia"], ["region_id", 416], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2553
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2554
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2555
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 416]]
|
2556
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 416]]
|
2557
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "New Zealand"], ["region_id", 416], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
2558
|
+
[1m[35m (1.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2559
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2560
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 416]]
|
2561
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 416]]
|
2562
|
+
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2563
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2564
|
+
[1m[35mRegion Load (1.0ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 416]]
|
2565
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 417]]
|
2566
|
+
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2567
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
2568
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 415]]
|
2569
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 415]]
|
2570
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Pacific"], ["region_id", 415], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2571
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2572
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2573
|
+
[1m[36mRegion Load (1.5ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 416]]
|
2574
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 419]]
|
2575
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 419]]
|
2576
|
+
[1m[35mSQL (1.7ms)[0m UPDATE "regions" SET rgtp = 0 * rgtp + 1 * rgtq, rgtq = -1 * rgtp + 3 * rgtq, rgt = 1.000000000000000000000000000000 * (0 * rgtp + 1 * rgtq) / (-1 * rgtp + 3 * rgtq), lftp = 0 * lftp + 1 * lftq, lftq = -1 * lftp + 3 * lftq, lft = 1.000000000000000000000000000000 * (0 * lftp + 1 * lftq) / (-1 * lftp + 3 * lftq) WHERE "regions"."fiction" = 'f' AND (lftp > 1 AND lft BETWEEN 0.5 AND 1.0)
|
2577
|
+
[1m[36mSQL (1.3ms)[0m [1mUPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "region_id" = $4, "rgt" = $5, "rgtq" = $6 WHERE "regions"."id" = 416[0m [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["region_id", 419], ["rgt", "0.5"], ["rgtq", 2]]
|
2578
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
2579
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 417]]
|
2580
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 418]]
|
2581
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
2582
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2583
|
+
------------------------------------------------------
|
2584
|
+
ActsAsNestedIntervalTest: test_move_from_left_to_right
|
2585
|
+
------------------------------------------------------
|
2586
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2587
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.0"], ["lftp", 0], ["lftq", 1], ["name", "earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2588
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2589
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2590
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 420]]
|
2591
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 420]]
|
2592
|
+
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "europe"], ["region_id", 420], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2593
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2594
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2595
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 420]]
|
2596
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 420]]
|
2597
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "america"], ["region_id", 420], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2598
|
+
[1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2599
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2600
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 422]]
|
2601
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 422]]
|
2602
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.4"], ["lftp", 2], ["lftq", 5], ["name", "usa"], ["region_id", 422], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2603
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2604
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
2605
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 423]]
|
2606
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 423]]
|
2607
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.428571428571429"], ["lftp", 3], ["lftq", 7], ["name", "texas"], ["region_id", 423], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2608
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2609
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2610
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 424]]
|
2611
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 424]]
|
2612
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.444444444444444"], ["lftp", 4], ["lftq", 9], ["name", "houston"], ["region_id", 424], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2613
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2614
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2615
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 424]]
|
2616
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1[0m [["id", 421]]
|
2617
|
+
[1m[35mRegion Load (0.7ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 421]]
|
2618
|
+
[1m[36mSQL (1.7ms)[0m [1mUPDATE "regions" SET rgtp = 3 * rgtp + -1 * rgtq, rgtq = 1 * rgtp + 0 * rgtq, rgt = 1.000000000000000000000000000000 * (3 * rgtp + -1 * rgtq) / (1 * rgtp + 0 * rgtq), lftp = 3 * lftp + -1 * lftq, lftq = 1 * lftp + 0 * lftq, lft = 1.000000000000000000000000000000 * (3 * lftp + -1 * lftq) / (1 * lftp + 0 * lftq) WHERE "regions"."fiction" = 'f' AND (lftp > 3 AND lft BETWEEN 0.42857142857142855 AND 0.5)[0m
|
2619
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "region_id" = $4, "rgt" = $5, "rgtq" = $6 WHERE "regions"."id" = 424 [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["region_id", 421], ["rgt", "1.0"], ["rgtq", 1]]
|
2620
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2621
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 425]]
|
2622
|
+
[1m[36m (1.2ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 3 AND lft BETWEEN 0.75 AND 1.0)[0m
|
2623
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 424]]
|
2624
|
+
[1m[36m (1.2ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 2 AND lft BETWEEN 0.6666666666666666 AND 1.0)[0m
|
2625
|
+
[1m[35mRegion Load (6.7ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 421]]
|
2626
|
+
[1m[36m (1.3ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 1 AND lft BETWEEN 0.5 AND 1.0)[0m
|
2627
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 422]]
|
2628
|
+
[1m[36m (1.1ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 1 AND lft BETWEEN 0.3333333333333333 AND 0.5)[0m
|
2629
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 423]]
|
2630
|
+
[1m[36m (1.1ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 2 AND lft BETWEEN 0.4 AND 0.5)[0m
|
2631
|
+
[1m[35mRegion Load (0.7ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 420]]
|
2632
|
+
[1m[36m (1.2ms)[0m [1mSELECT COUNT(*) FROM "regions" WHERE "regions"."fiction" = 'f' AND (lftp > 0 AND lft BETWEEN 0.0 AND 1.0)[0m
|
2633
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
2634
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
2635
|
+
---------------------------------------------------------------
|
2636
|
+
ActsAsNestedIntervalTest: test_move_to_root_recomputes_interval
|
2637
|
+
---------------------------------------------------------------
|
2638
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2639
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2640
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2641
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2642
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2643
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 426]]
|
2644
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 426]]
|
2645
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 426], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2646
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2647
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2648
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2649
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2650
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2651
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2652
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2653
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2654
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2655
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2656
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 [["id", 427]]
|
2657
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2658
|
+
[1m[35mSQL (1.6ms)[0m UPDATE "regions" SET rgtp = 2 * rgtp + -1 * rgtq, rgtq = 7 * rgtp + -3 * rgtq, rgt = 1.000000000000000000000000000000 * (2 * rgtp + -1 * rgtq) / (7 * rgtp + -3 * rgtq), lftp = 2 * lftp + -1 * lftq, lftq = 7 * lftp + -3 * lftq, lft = 1.000000000000000000000000000000 * (2 * lftp + -1 * lftq) / (7 * lftp + -3 * lftq) WHERE "regions"."fiction" = 'f' AND (lftp > 2 AND lft BETWEEN 0.6666666666666666 AND 1.0)
|
2659
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "region_id" = $4, "rgt" = $5, "rgtq" = $6 WHERE "regions"."id" = 427[0m [["lft", "0.2"], ["lftp", 1], ["lftq", 5], ["region_id", nil], ["rgt", "0.25"], ["rgtq", 4]]
|
2660
|
+
[1m[35m (1.9ms)[0m RELEASE SAVEPOINT active_record_1
|
2661
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
2662
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2663
|
+
---------------------------------------
|
2664
|
+
ActsAsNestedIntervalTest: test_preorder
|
2665
|
+
---------------------------------------
|
2666
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2667
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2668
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2669
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
2670
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2671
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 430]]
|
2672
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 430]]
|
2673
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 430], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2674
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2675
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2676
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 430]]
|
2677
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 430]]
|
2678
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.6"], ["lftp", 3], ["lftq", 5], ["name", "Antarctica"], ["region_id", 430], ["rgt", "0.666666666666667"], ["rgtp", 2], ["rgtq", 3]]
|
2679
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2680
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2681
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 431]]
|
2682
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 431]]
|
2683
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.75"], ["lftp", 3], ["lftq", 4], ["name", "Australia"], ["region_id", 431], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2684
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2685
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2686
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 431]]
|
2687
|
+
[1m[35mRegion Load (1.4ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 431]]
|
2688
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.714285714285714"], ["lftp", 5], ["lftq", 7], ["name", "New Zealand"], ["region_id", 431], ["rgt", "0.75"], ["rgtp", 3], ["rgtq", 4]]
|
2689
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2690
|
+
[1m[36mRegion Load (1.9ms)[0m [1mSELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC[0m
|
2691
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
2692
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2693
|
+
-----------------------------------------------------------
|
2694
|
+
ActsAsNestedIntervalTest: test_rebuild_nested_interval_tree
|
2695
|
+
-----------------------------------------------------------
|
2696
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2697
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2698
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2699
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2700
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2701
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 435]]
|
2702
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 435]]
|
2703
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 435], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2704
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2705
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2706
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2707
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2708
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2709
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2710
|
+
[1m[35mRegion Load (1.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2711
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2712
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2713
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "regions" SET "lftp" = 0, "lftq" = 0, "rgtp" = 0, "rgtq" = 0, "lft" = 0, "rgt" = 0 WHERE ("regions".lftq > 0)[0m
|
2714
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" IS NULL ORDER BY "regions"."id" ASC LIMIT 1000
|
2715
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2716
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2717
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 435[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2718
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2719
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 435 ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
2720
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."id" = $1 LIMIT 1 [["id", 435]]
|
2721
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 435]]
|
2722
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 435]]
|
2723
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2724
|
+
[1m[35mSQL (2.1ms)[0m UPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 436 [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2725
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2726
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 436 ORDER BY "regions"."id" ASC LIMIT 1000
|
2727
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2728
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2729
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 437[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2730
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2731
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 437 ORDER BY "regions"."id" ASC LIMIT 1000[0m
|
2732
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE ("regions".lftq > 0) AND "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2733
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2734
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "regions" SET "lft" = $1, "lftp" = $2, "lftq" = $3, "rgt" = $4, "rgtp" = $5, "rgtq" = $6 WHERE "regions"."id" = 438 [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2735
|
+
[1m[36m (1.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2736
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = 438 ORDER BY "regions"."id" ASC LIMIT 1000
|
2737
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC[0m
|
2738
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
2739
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2740
|
+
---------------------------------------------------------
|
2741
|
+
ActsAsNestedIntervalTest: test_root_update_keeps_interval
|
2742
|
+
---------------------------------------------------------
|
2743
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2744
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2745
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2746
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2747
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2748
|
+
[1m[36mRegion Load (0.9ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 439]]
|
2749
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 439]]
|
2750
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 439], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2751
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2752
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2753
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2754
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2755
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2756
|
+
[1m[36m (1.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2757
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2758
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2759
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2760
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2761
|
+
[1m[35mRegion Load (4.5ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" IN (442, '---
|
2762
|
+
:lock: true
|
2763
|
+
')
|
2764
|
+
PG::InvalidTextRepresentation: BŁĄD: nieprawidłowa składnia wejścia dla integer: "---
|
2765
|
+
:lock: true
|
2766
|
+
"
|
2767
|
+
LINE 1: ...egions".* FROM "regions" WHERE "regions"."id" IN (442, '---
|
2768
|
+
^
|
2769
|
+
: SELECT "regions".* FROM "regions" WHERE "regions"."id" IN (442, '---
|
2770
|
+
:lock: true
|
2771
|
+
')
|
2772
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2773
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
2774
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
2775
|
+
------------------------------------
|
2776
|
+
ActsAsNestedIntervalTest: test_scope
|
2777
|
+
------------------------------------
|
2778
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2779
|
+
[1m[36mRegion Load (1.1ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2780
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Earth"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2781
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2782
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2783
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE[0m [["id", 443]]
|
2784
|
+
[1m[35mRegion Load (0.9ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1 [["region_id", 443]]
|
2785
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Oceania"], ["region_id", 443], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2786
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2787
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2788
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2789
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "regions" ("fiction", "lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["fiction", "t"], ["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Krypton"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2790
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2791
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND (0 = 1 OR lftq = 2 AND lftp = 1 OR lftq = 1 AND lftp = 0)[0m
|
2792
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 't' AND (lftp > 1 AND lft BETWEEN 0.5 AND 1.0)
|
2793
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
2794
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2795
|
+
------------------------------------------------------
|
2796
|
+
ActsAsNestedIntervalTest: test_virtual_root_allocation
|
2797
|
+
------------------------------------------------------
|
2798
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2799
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2800
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "Europe"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2801
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2802
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2803
|
+
[1m[35mRegion Load (0.8ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."id" = $1 LIMIT 1 FOR UPDATE [["id", 446]]
|
2804
|
+
[1m[36mRegion Load (0.8ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."region_id" = $1 ORDER BY lftq DESC LIMIT 1[0m [["region_id", 446]]
|
2805
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "region_id", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["lft", "0.666666666666667"], ["lftp", 2], ["lftq", 3], ["name", "Romania"], ["region_id", 446], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2806
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2807
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
2808
|
+
[1m[36mRegion Load (1.2ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2809
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "Asia"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2810
|
+
[1m[36m (0.7ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2811
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
2812
|
+
[1m[36mRegion Load (1.3ms)[0m [1mSELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1[0m
|
2813
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "America"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2814
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2815
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" ORDER BY rgt DESC, lftp ASC
|
2816
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
2817
|
+
[1m[35m (0.5ms)[0m BEGIN
|
2818
|
+
-------------------------------------------------
|
2819
|
+
ActsAsNestedIntervalTest: test_virtual_root_order
|
2820
|
+
-------------------------------------------------
|
2821
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
2822
|
+
[1m[35mRegion Load (1.1ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2823
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.5"], ["lftp", 1], ["lftq", 2], ["name", "1"], ["rgt", "1.0"], ["rgtp", 1], ["rgtq", 1]]
|
2824
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2825
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2826
|
+
[1m[35mRegion Load (1.3ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2827
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.333333333333333"], ["lftp", 1], ["lftq", 3], ["name", "2"], ["rgt", "0.5"], ["rgtp", 1], ["rgtq", 2]]
|
2828
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2829
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
2830
|
+
[1m[35mRegion Load (1.2ms)[0m SELECT "regions".* FROM "regions" WHERE "regions"."fiction" = 'f' AND "regions"."region_id" IS NULL ORDER BY lftq DESC LIMIT 1
|
2831
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "regions" ("lft", "lftp", "lftq", "name", "rgt", "rgtp", "rgtq") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["lft", "0.25"], ["lftp", 1], ["lftq", 4], ["name", "3"], ["rgt", "0.333333333333333"], ["rgtp", 1], ["rgtq", 3]]
|
2832
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
2833
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|