tursodatabase/turso
PRAGMA table_info strips type parameters from column declarations
開放
#5,762 建立於 2026年3月6日
compatibilitygood first issueschema management
倉庫指標
- 星標
- (19,103 顆星)
- PR 合併指標
- (平均合併 2天 11小時) (30 天內合併 147 個 PR)
描述
Description
PRAGMA table_info strips parenthesized type parameters from column type declarations. SQLite preserves the complete type string exactly as written.
Reproducer
CREATE TABLE t(
a VARCHAR(100),
b CHAR(50),
c DECIMAL(10,2),
d NUMERIC(5,3),
e FLOAT(24),
f NVARCHAR(200)
);
PRAGMA table_info(t);
-- Turso type column: VARCHAR, CHAR, DECIMAL, NUMERIC, FLOAT, NVARCHAR
-- SQLite type column: VARCHAR(100), CHAR(50), DECIMAL(10,2), NUMERIC(5,3), FLOAT(24), NVARCHAR(200)
Per SQLite documentation: the "type" column reports the declared type of the column. The schema parser or column metadata storage strips the parenthesized parameters.
This issue brought to you by Mikaël and Claude Code.