File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,11 @@ class Table {
46
46
/// Override the name for the view
47
47
final String ? _viewNameOverride;
48
48
49
- /// There is maximum of 127 arguments for any function in SQLite. Currently we use json_object which uses 1 arg per key (column name)
50
- /// and one per value, which limits it to 63 arguments.
51
- final int maxNumberOfColumns = 63 ;
49
+ /// powersync-sqlite-core limits the number of columns
50
+ /// per table to 1999, due to internal SQLite limits.
51
+ ///
52
+ /// In earlier versions this was limited to 63.
53
+ final int maxNumberOfColumns = 1999 ;
52
54
53
55
/// Internal use only.
54
56
///
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ void main() {
303
303
304
304
test ('Table with too many columns' , () {
305
305
final List <Column > manyColumns = List .generate (
306
- 64 , // Exceeds MAX_NUMBER_OF_COLUMNS
306
+ 2000 , // Exceeds MAX_NUMBER_OF_COLUMNS
307
307
(index) => Column ('col$index ' , ColumnType .text),
308
308
);
309
309
You can’t perform that action at this time.
0 commit comments