@@ -955,7 +955,7 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
955955 |> select ( [ ] , type ( ^ "601d74e4-a8d3-4b6e-8365-eddb4c893327" , Ecto.UUID ) )
956956 |> plan ( )
957957
958- assert all ( query ) == ~s{ SELECT CAST(? AS TEXT_UUID ) FROM "schema" AS s0}
958+ assert all ( query ) == ~s{ SELECT CAST(? AS TEXT ) FROM "schema" AS s0}
959959 end
960960
961961 test "string type" do
@@ -2152,7 +2152,7 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
21522152 [ precision: 8 , scale: 2 , default: { :fragment , "expr" } ] } ,
21532153 { :add , :on_hand , :integer , [ default: 0 , null: true ] } ,
21542154 { :add , :likes , :integer , [ default: 0 , null: false ] } ,
2155- { :add , :published_at , :datetime , [ null: true ] } ,
2155+ { :add , :published_at , :utc_datetime , [ null: true ] } ,
21562156 { :add , :is_active , :boolean , [ default: true ] } ,
21572157 { :add , :notes , :text , [ collate: :nocase ] } ,
21582158 { :add , :meta , :text , [ check: % { name: "meta_constraint" , expr: "meta != 'a'" } ] }
@@ -2166,8 +2166,8 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
21662166 "price" NUMERIC DEFAULT expr, \
21672167 "on_hand" INTEGER DEFAULT 0 NULL, \
21682168 "likes" INTEGER DEFAULT 0 NOT NULL, \
2169- "published_at" DATETIME NULL, \
2170- "is_active" BOOLEAN DEFAULT true, \
2169+ "published_at" TEXT NULL, \
2170+ "is_active" INTEGER DEFAULT true, \
21712171 "notes" TEXT COLLATE NOCASE, \
21722172 "meta" TEXT CONSTRAINT meta_constraint CHECK (meta != 'a')\
21732173 )\
@@ -2337,8 +2337,8 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
23372337 assert execute_ddl ( create ) == [
23382338 """
23392339 CREATE TABLE "posts" (\
2340- "published_at" TEXT_DATETIME , \
2341- "submitted_at" TEXT_DATETIME \
2340+ "published_at" TEXT , \
2341+ "submitted_at" TEXT \
23422342 )\
23432343 """
23442344 ]
@@ -2353,7 +2353,7 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
23532353 ] }
23542354
23552355 assert execute_ddl ( create ) == [
2356- ~s{ CREATE TABLE "posts" ("published_at" TEXT_DATETIME , "submitted_at" TEXT_DATETIME )}
2356+ ~s{ CREATE TABLE "posts" ("published_at" TEXT , "submitted_at" TEXT )}
23572357 ]
23582358 end
23592359
@@ -2443,7 +2443,7 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
24432443 """ ,
24442444 """
24452445 ALTER TABLE "posts" \
2446- ADD COLUMN "when" TEXT_DATETIME \
2446+ ADD COLUMN "when" TEXT \
24472447 """
24482448 ]
24492449 end
0 commit comments