You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createtableapp.users (
id bigint generated by default as identity primary key,
"name"textnot null,
created_ts timestamptznot null default now(),
age smallintnot null
);
actual
stdin:1:0: warning: prefer-big-int
1 | create table app.users (
2 | id bigint generated by default as identity primary key,
3 | "name" text not null,
4 | created_ts timestamptz not null default now(),
5 | age smallint not null
6 | );
note: Hitting the max 32 bit integer is possible and may break your application.
help: Use 64bit integer values instead to prevent hitting this limit.
find detailed examples and solutions for each rule at https://squawkhq.com/docs/rules
expected
stdin:1:0: warning: prefer-big-int
|
5 | age smallint not null
| ^^^^^^^^
|
help: consider using a 64bit integer: `bigint`
note: Hitting the max 32 bit integer is possible and may break your application.
help: Use 64bit integer values instead to prevent hitting this limit.
find detailed examples and solutions for each rule at https://squawkhq.com/docs/rules
The text was updated successfully, but these errors were encountered:
Input SQL
actual
expected
The text was updated successfully, but these errors were encountered: