active_record_simple_execute 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE +21 -0
- data/README.md +86 -0
- data/Rakefile +21 -0
- data/lib/active_record_simple_execute.rb +34 -0
- data/lib/active_record_simple_execute/version.rb +5 -0
- data/test/dummy_app/Rakefile +7 -0
- data/test/dummy_app/app/assets/config/manifest.js +3 -0
- data/test/dummy_app/app/assets/javascripts/application.js +0 -0
- data/test/dummy_app/app/assets/stylesheets/application.css +3 -0
- data/test/dummy_app/app/controllers/application_controller.rb +3 -0
- data/test/dummy_app/app/models/application_record.rb +3 -0
- data/test/dummy_app/app/models/post.rb +3 -0
- data/test/dummy_app/app/views/layouts/application.html.erb +14 -0
- data/test/dummy_app/config.ru +4 -0
- data/test/dummy_app/config/application.rb +70 -0
- data/test/dummy_app/config/boot.rb +10 -0
- data/test/dummy_app/config/database.yml +20 -0
- data/test/dummy_app/config/environment.rb +5 -0
- data/test/dummy_app/config/environments/development.rb +30 -0
- data/test/dummy_app/config/environments/production.rb +60 -0
- data/test/dummy_app/config/environments/test.rb +41 -0
- data/test/dummy_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy_app/config/initializers/inflections.rb +10 -0
- data/test/dummy_app/config/initializers/mime_types.rb +5 -0
- data/test/dummy_app/config/initializers/secret_token.rb +11 -0
- data/test/dummy_app/config/initializers/session_store.rb +8 -0
- data/test/dummy_app/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy_app/config/locales/en.yml +5 -0
- data/test/dummy_app/config/routes.rb +6 -0
- data/test/dummy_app/config/secrets.yml +22 -0
- data/test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb +28 -0
- data/test/dummy_app/db/test +0 -0
- data/test/dummy_app/db/test.sqlite3 +0 -0
- data/test/dummy_app/log/test.log +612 -0
- data/test/test_helper.rb +43 -0
- data/test/unit/active_record_simple_execute_test.rb +63 -0
- metadata +227 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_files = true
|
12
|
+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
33
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
34
|
+
# like if you have constraints or database-specific column types
|
35
|
+
# config.active_record.schema_format = :sql
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
|
40
|
+
config.eager_load = false
|
41
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
|
8
|
+
gem_version = ActiveRecord.gem_version
|
9
|
+
if gem_version <= Gem::Version.new("5.1")
|
10
|
+
Dummy::Application.config.secret_token = '4f337f0063fbb4a724dd8da15419679300da990ae4f6c94d36c714a3cd07e9653fc42d902cf33a9b9449a28e7eb2673f928172d65a090fa3c9156d6beea8d16c'
|
11
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
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
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
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: d28054e102cd55dcd684cee239d31ddf1e1acd83bd879dd5f671e989f5c9d94ec1ede00e7fcf9b6bde4cd115f93c54e3ba6c5dc05d233292542f27a79706fcb4
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 378b4f2309d4898f5170b41624e19bf60ce8a154ad87c100e8846bddcf4c28b72b533f2e73738ef8f6eabb7a773a0a0e7c32c0649916c5f280eb7ac621fc318c
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: 5e73c057b92f67f980fbea4c1c2c495b25def0048f8c1c040fed9c08f49cd50a2ebf872dd87857afc0861479e9382fceb7d9837a0bce546c2f7594e2f4da45e3
|
@@ -0,0 +1,28 @@
|
|
1
|
+
if defined?(ActiveRecord::Migration::Current)
|
2
|
+
migration_klass = ActiveRecord::Migration::Current
|
3
|
+
else
|
4
|
+
migration_klass = ActiveRecord::Migration
|
5
|
+
end
|
6
|
+
|
7
|
+
class SetUpTestTables < migration_klass
|
8
|
+
|
9
|
+
def change
|
10
|
+
create_table :posts do |t|
|
11
|
+
t.string :title, :content
|
12
|
+
t.integer :number
|
13
|
+
t.timestamps
|
14
|
+
end
|
15
|
+
|
16
|
+
create_table :comments do |t|
|
17
|
+
t.text :content
|
18
|
+
t.references :user, :post
|
19
|
+
t.timestamps
|
20
|
+
end
|
21
|
+
|
22
|
+
create_table :users do |t|
|
23
|
+
t.string :name
|
24
|
+
t.timestamps
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
Binary file
|
Binary file
|
@@ -0,0 +1,612 @@
|
|
1
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
3
|
+
-------------------------------------------------
|
4
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
5
|
+
-------------------------------------------------
|
6
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8
|
+
----------------------------------------------
|
9
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
10
|
+
----------------------------------------------
|
11
|
+
[1m[35m (0.2ms)[0m [1m[34mselect * from posts where orders.title = 'bar'[0m
|
12
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
13
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
14
|
+
-----------------------------------------------
|
15
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
16
|
+
-----------------------------------------------
|
17
|
+
[1m[35m (0.1ms)[0m [1m[34mselect * from posts where orders.title = 'bar'[0m
|
18
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
19
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
20
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
21
|
+
-------------------------------------------------
|
22
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
23
|
+
-------------------------------------------------
|
24
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
25
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
26
|
+
-----------------------------------------------
|
27
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
28
|
+
-----------------------------------------------
|
29
|
+
[1m[35m (0.1ms)[0m [1m[34mselect * from posts where posts.title = 'bar'[0m
|
30
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
31
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
32
|
+
----------------------------------------------
|
33
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
34
|
+
----------------------------------------------
|
35
|
+
[1m[35m (0.1ms)[0m [1m[34mselect * from posts where posts.title = 'bar'[0m
|
36
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
37
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
38
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
39
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
40
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
41
|
+
Migrating to SetUpTestTables (20210128155312)
|
42
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
43
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" varchar, "number" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
44
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "content" text, "user_id" integer, "post_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
45
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")[0m
|
46
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
47
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
48
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20210128155312"]]
|
49
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
50
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
51
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2021-05-20 05:52:52.993598"], ["updated_at", "2021-05-20 05:52:52.993598"]]
|
53
|
+
[1m[35m (2.0ms)[0m [1m[36mcommit transaction[0m
|
54
|
+
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM posts;[0m
|
55
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
56
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
57
|
+
-----------------------------------------------
|
58
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
59
|
+
-----------------------------------------------
|
60
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
61
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
62
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
63
|
+
-------------------------------------------------
|
64
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
65
|
+
-------------------------------------------------
|
66
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
67
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
68
|
+
----------------------------------------------
|
69
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
70
|
+
----------------------------------------------
|
71
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
72
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
73
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
74
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
75
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
76
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
77
|
+
[1m[35m (1.5ms)[0m [1m[31mDELETE FROM posts;[0m
|
78
|
+
[1m[35m (0.2ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
79
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
80
|
+
-----------------------------------------------
|
81
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
82
|
+
-----------------------------------------------
|
83
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
84
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 05:53:30.883973"], ["updated_at", "2021-05-20 05:53:30.883973"]]
|
85
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
86
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
87
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
88
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
89
|
+
----------------------------------------------
|
90
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
91
|
+
----------------------------------------------
|
92
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
93
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
94
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
95
|
+
-------------------------------------------------
|
96
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
97
|
+
-------------------------------------------------
|
98
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
99
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
100
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
101
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
102
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
103
|
+
[1m[35m (1.3ms)[0m [1m[31mDELETE FROM posts;[0m
|
104
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
105
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
106
|
+
-----------------------------------------------
|
107
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
108
|
+
-----------------------------------------------
|
109
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
110
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 05:53:54.976875"], ["updated_at", "2021-05-20 05:53:54.976875"]]
|
111
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
112
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
113
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
114
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
115
|
+
-------------------------------------------------
|
116
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
117
|
+
-------------------------------------------------
|
118
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
119
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
120
|
+
----------------------------------------------
|
121
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
122
|
+
----------------------------------------------
|
123
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
124
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
125
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
126
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
127
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
128
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
129
|
+
[1m[35m (1.5ms)[0m [1m[31mDELETE FROM posts;[0m
|
130
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
131
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
132
|
+
-------------------------------------------------
|
133
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
134
|
+
-------------------------------------------------
|
135
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
136
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
137
|
+
-----------------------------------------------
|
138
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
139
|
+
-----------------------------------------------
|
140
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
141
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 05:54:08.825470"], ["updated_at", "2021-05-20 05:54:08.825470"]]
|
142
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
143
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
144
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
145
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
146
|
+
----------------------------------------------
|
147
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
148
|
+
----------------------------------------------
|
149
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
150
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
151
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
152
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
153
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
154
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
155
|
+
[1m[35m (1.8ms)[0m [1m[31mDELETE FROM posts;[0m
|
156
|
+
[1m[35m (0.3ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
157
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
158
|
+
-----------------------------------------------
|
159
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
160
|
+
-----------------------------------------------
|
161
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
162
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 05:54:33.237152"], ["updated_at", "2021-05-20 05:54:33.237152"]]
|
163
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
164
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
165
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
166
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
167
|
+
----------------------------------------------
|
168
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
169
|
+
----------------------------------------------
|
170
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
171
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
172
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
173
|
+
-------------------------------------------------
|
174
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
175
|
+
-------------------------------------------------
|
176
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
177
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
178
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
179
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
180
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
181
|
+
[1m[35m (1.3ms)[0m [1m[31mDELETE FROM posts;[0m
|
182
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
183
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
184
|
+
-----------------------------------------------
|
185
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
186
|
+
-----------------------------------------------
|
187
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
188
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 05:54:45.670452"], ["updated_at", "2021-05-20 05:54:45.670452"]]
|
189
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
190
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
191
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
192
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
193
|
+
----------------------------------------------
|
194
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
195
|
+
----------------------------------------------
|
196
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
197
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
198
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
199
|
+
-------------------------------------------------
|
200
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
201
|
+
-------------------------------------------------
|
202
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
203
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
204
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
205
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
206
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
207
|
+
[1m[35m (1.4ms)[0m [1m[31mDELETE FROM posts;[0m
|
208
|
+
[1m[35m (0.6ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
209
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
210
|
+
----------------------------------------------
|
211
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
212
|
+
----------------------------------------------
|
213
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
214
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
215
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
216
|
+
-------------------------------------------------
|
217
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
218
|
+
-------------------------------------------------
|
219
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
220
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
221
|
+
-----------------------------------------------
|
222
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
223
|
+
-----------------------------------------------
|
224
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
225
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 05:56:31.198693"], ["updated_at", "2021-05-20 05:56:31.198693"]]
|
226
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
227
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
228
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
229
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
230
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
231
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
232
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
233
|
+
[1m[35m (1.0ms)[0m [1m[31mDELETE FROM posts;[0m
|
234
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
235
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
236
|
+
-----------------------------------------------
|
237
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
238
|
+
-----------------------------------------------
|
239
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
240
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 05:58:47.688330"], ["updated_at", "2021-05-20 05:58:47.688330"]]
|
241
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
242
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
243
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
244
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
245
|
+
----------------------------------------------
|
246
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
247
|
+
----------------------------------------------
|
248
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
249
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
250
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
251
|
+
-------------------------------------------------
|
252
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
253
|
+
-------------------------------------------------
|
254
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
255
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
256
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
257
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
258
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
259
|
+
[1m[35m (1.3ms)[0m [1m[31mDELETE FROM posts;[0m
|
260
|
+
[1m[35m (0.6ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
261
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
262
|
+
-----------------------------------------------
|
263
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
264
|
+
-----------------------------------------------
|
265
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
266
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 05:59:21.953471"], ["updated_at", "2021-05-20 05:59:21.953471"]]
|
267
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
268
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
269
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
270
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
271
|
+
----------------------------------------------
|
272
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
273
|
+
----------------------------------------------
|
274
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
275
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
276
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
277
|
+
-------------------------------------------------
|
278
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
279
|
+
-------------------------------------------------
|
280
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
281
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
282
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
283
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
284
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
285
|
+
[1m[35m (1.7ms)[0m [1m[31mDELETE FROM posts;[0m
|
286
|
+
[1m[35m (0.2ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
287
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
288
|
+
-----------------------------------------------
|
289
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
290
|
+
-----------------------------------------------
|
291
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
292
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 05:59:59.169170"], ["updated_at", "2021-05-20 05:59:59.169170"]]
|
293
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
294
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
295
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
296
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
297
|
+
----------------------------------------------
|
298
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
299
|
+
----------------------------------------------
|
300
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
301
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
302
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
303
|
+
-------------------------------------------------
|
304
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
305
|
+
-------------------------------------------------
|
306
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
307
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
308
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
309
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
310
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
311
|
+
[1m[35m (1.4ms)[0m [1m[31mDELETE FROM posts;[0m
|
312
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
313
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
314
|
+
-------------------------------------------------
|
315
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
316
|
+
-------------------------------------------------
|
317
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
318
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
319
|
+
-----------------------------------------------
|
320
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
321
|
+
-----------------------------------------------
|
322
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
323
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:00:32.253301"], ["updated_at", "2021-05-20 06:00:32.253301"]]
|
324
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
325
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
326
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
327
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
328
|
+
----------------------------------------------
|
329
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
330
|
+
----------------------------------------------
|
331
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
332
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
333
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
334
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
335
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
336
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
337
|
+
[1m[35m (1.4ms)[0m [1m[31mDELETE FROM posts;[0m
|
338
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
339
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
340
|
+
-----------------------------------------------
|
341
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
342
|
+
-----------------------------------------------
|
343
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
344
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:01:41.533312"], ["updated_at", "2021-05-20 06:01:41.533312"]]
|
345
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
346
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
347
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
348
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
349
|
+
----------------------------------------------
|
350
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
351
|
+
----------------------------------------------
|
352
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
353
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
354
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
355
|
+
-------------------------------------------------
|
356
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
357
|
+
-------------------------------------------------
|
358
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
359
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
360
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
361
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
362
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
363
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
364
|
+
[1m[35m (1.4ms)[0m [1m[31mDELETE FROM posts;[0m
|
365
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
366
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
367
|
+
-----------------------------------------------
|
368
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
369
|
+
-----------------------------------------------
|
370
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
371
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:02:01.592052"], ["updated_at", "2021-05-20 06:02:01.592052"]]
|
372
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
373
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
374
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
375
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
376
|
+
----------------------------------------------
|
377
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
378
|
+
----------------------------------------------
|
379
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
380
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
381
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
382
|
+
-------------------------------------------------
|
383
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
384
|
+
-------------------------------------------------
|
385
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
386
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:02:01.594501"], ["updated_at", "2021-05-20 06:02:01.594501"]]
|
387
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
388
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
389
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
390
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
391
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
392
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
393
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
394
|
+
[1m[35m (1.5ms)[0m [1m[31mDELETE FROM posts;[0m
|
395
|
+
[1m[35m (0.6ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
396
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
397
|
+
---------------------------------------------------
|
398
|
+
ActiveRecordSimpleExecuteTest: test_exposes_version
|
399
|
+
---------------------------------------------------
|
400
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
401
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
402
|
+
-----------------------------------------------
|
403
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
404
|
+
-----------------------------------------------
|
405
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
406
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:11:33.566934"], ["updated_at", "2021-05-20 06:11:33.566934"]]
|
407
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
408
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
409
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
410
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
411
|
+
----------------------------------------------
|
412
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
413
|
+
----------------------------------------------
|
414
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
415
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
416
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
417
|
+
-------------------------------------------------
|
418
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
419
|
+
-------------------------------------------------
|
420
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
421
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:11:33.569228"], ["updated_at", "2021-05-20 06:11:33.569228"]]
|
422
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
423
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
424
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
425
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
426
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
427
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
428
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
429
|
+
Migrating to SetUpTestTables (20210128155312)
|
430
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
431
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" varchar, "number" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
432
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "comments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "content" text, "user_id" integer, "post_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
433
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_comments_on_user_id" ON "comments" ("user_id")[0m
|
434
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_comments_on_post_id" ON "comments" ("post_id")[0m
|
435
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
436
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20210128155312"]]
|
437
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
438
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
439
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
440
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2021-05-20 06:29:00.161778"], ["updated_at", "2021-05-20 06:29:00.161778"]]
|
441
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
442
|
+
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM posts;[0m
|
443
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
444
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
445
|
+
-----------------------------------------------
|
446
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
447
|
+
-----------------------------------------------
|
448
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
449
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:29:00.209495"], ["updated_at", "2021-05-20 06:29:00.209495"]]
|
450
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
451
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
452
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
453
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
454
|
+
----------------------------------------------
|
455
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
456
|
+
----------------------------------------------
|
457
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
458
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
459
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
460
|
+
-------------------------------------------------
|
461
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
462
|
+
-------------------------------------------------
|
463
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
464
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:29:00.212013"], ["updated_at", "2021-05-20 06:29:00.212013"]]
|
465
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
466
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
467
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
468
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
469
|
+
---------------------------------------------------
|
470
|
+
ActiveRecordSimpleExecuteTest: test_exposes_version
|
471
|
+
---------------------------------------------------
|
472
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
473
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
474
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
475
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
476
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
477
|
+
[1m[35m (1.2ms)[0m [1m[31mDELETE FROM posts;[0m
|
478
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
479
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
480
|
+
---------------------------------------------------
|
481
|
+
ActiveRecordSimpleExecuteTest: test_exposes_version
|
482
|
+
---------------------------------------------------
|
483
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
484
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
485
|
+
-----------------------------------------------
|
486
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
487
|
+
-----------------------------------------------
|
488
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
489
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:29:04.738175"], ["updated_at", "2021-05-20 06:29:04.738175"]]
|
490
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
491
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
492
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
493
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
494
|
+
----------------------------------------------
|
495
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
496
|
+
----------------------------------------------
|
497
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
498
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
499
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
500
|
+
-------------------------------------------------
|
501
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
502
|
+
-------------------------------------------------
|
503
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
504
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:29:04.740508"], ["updated_at", "2021-05-20 06:29:04.740508"]]
|
505
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
506
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
507
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
508
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
509
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
510
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
511
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
512
|
+
[1m[35m (1.2ms)[0m [1m[31mDELETE FROM posts;[0m
|
513
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
514
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
515
|
+
----------------------------------------------
|
516
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
517
|
+
----------------------------------------------
|
518
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
519
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
520
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
521
|
+
---------------------------------------------------
|
522
|
+
ActiveRecordSimpleExecuteTest: test_exposes_version
|
523
|
+
---------------------------------------------------
|
524
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
525
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
526
|
+
-----------------------------------------------
|
527
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
528
|
+
-----------------------------------------------
|
529
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
530
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:31:43.704792"], ["updated_at", "2021-05-20 06:31:43.704792"]]
|
531
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
532
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
533
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
534
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
535
|
+
-------------------------------------------------
|
536
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
537
|
+
-------------------------------------------------
|
538
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
539
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:31:43.706486"], ["updated_at", "2021-05-20 06:31:43.706486"]]
|
540
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
541
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
542
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
543
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
544
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
545
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
546
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
547
|
+
[1m[35m (1.5ms)[0m [1m[31mDELETE FROM posts;[0m
|
548
|
+
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
549
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
550
|
+
----------------------------------------------
|
551
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
552
|
+
----------------------------------------------
|
553
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
554
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
555
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
556
|
+
-------------------------------------------------
|
557
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
558
|
+
-------------------------------------------------
|
559
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
560
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:45:14.401653"], ["updated_at", "2021-05-20 06:45:14.401653"]]
|
561
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
562
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
563
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
564
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
565
|
+
-----------------------------------------------
|
566
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
567
|
+
-----------------------------------------------
|
568
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
569
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 06:45:14.403420"], ["updated_at", "2021-05-20 06:45:14.403420"]]
|
570
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
571
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
572
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
573
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
574
|
+
---------------------------------------------------
|
575
|
+
ActiveRecordSimpleExecuteTest: test_exposes_version
|
576
|
+
---------------------------------------------------
|
577
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
578
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
579
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
580
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
581
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
582
|
+
[1m[35m (1.4ms)[0m [1m[31mDELETE FROM posts;[0m
|
583
|
+
[1m[35m (0.6ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
584
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
585
|
+
---------------------------------------------------
|
586
|
+
ActiveRecordSimpleExecuteTest: test_exposes_version
|
587
|
+
---------------------------------------------------
|
588
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
589
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
590
|
+
----------------------------------------------
|
591
|
+
ActiveRecordSimpleExecuteTest: test_no_results
|
592
|
+
----------------------------------------------
|
593
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
594
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
595
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
596
|
+
-------------------------------------------------
|
597
|
+
ActiveRecordSimpleExecuteTest: test_with_sql_vars
|
598
|
+
-------------------------------------------------
|
599
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
600
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 07:00:33.593182"], ["updated_at", "2021-05-20 07:00:33.593182"]]
|
601
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
602
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
603
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
604
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
605
|
+
-----------------------------------------------
|
606
|
+
ActiveRecordSimpleExecuteTest: test_has_results
|
607
|
+
-----------------------------------------------
|
608
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
609
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["title", "bar"], ["created_at", "2021-05-20 07:00:33.595145"], ["updated_at", "2021-05-20 07:00:33.595145"]]
|
610
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
611
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT * FROM posts WHERE posts.title = 'bar'[0m
|
612
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|