[Tarantool-patches] [PATCH] luacheck: change global vars to local in sql-tap

Alexander Turenko alexander.turenko at tarantool.org
Wed Nov 11 14:53:40 MSK 2020


> diff --git a/test/sql-tap/trigger2.test.lua b/test/sql-tap/trigger2.test.lua
> index 192b707d3..e58af5543 100755
> --- a/test/sql-tap/trigger2.test.lua
> +++ b/test/sql-tap/trigger2.test.lua
> @@ -61,8 +61,8 @@ test:plan(26)
>  
>  box.space._session_settings:update('sql_recursive_triggers', {{'=', 2, false}})
>  -- 1.
> -ii = 0
> -tbl_definitions = { "CREATE TABLE tbl (id INT PRIMARY KEY AUTOINCREMENT, a INTEGER UNIQUE, b INT );",
> +local ii = 0
> +local tbl_definitions = { "CREATE TABLE tbl (id INT PRIMARY KEY AUTOINCREMENT, a INTEGER UNIQUE, b INT );",
>                      "CREATE TABLE tbl (id INT PRIMARY KEY AUTOINCREMENT, a INT UNIQUE, b INT );",
>                      "CREATE TABLE tbl (id INT PRIMARY KEY AUTOINCREMENT, a INT, b INT UNIQUE );",
>                      "CREATE TABLE tbl (id INT PRIMARY KEY AUTOINCREMENT, a INT, b INTEGER UNIQUE );"}

Nit: CREATE TABLE statements were indented on the same column, but now
they're not.


More information about the Tarantool-patches mailing list