Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
truncate: fix a bug that array can't be truncated
- Loading branch information
Showing
3 changed files
with
47 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
table_create Diaries TABLE_NO_KEY | ||
[[0,0.0,0.0],true] | ||
column_create Diaries content COLUMN_SCALAR Text | ||
[[0,0.0,0.0],true] | ||
load --table Diaries | ||
[ | ||
{"content": "I tried Groonga."} | ||
] | ||
[[0,0.0,0.0],1] | ||
dump | ||
table_create Diaries TABLE_NO_KEY | ||
column_create Diaries content COLUMN_SCALAR Text | ||
load --table Diaries | ||
[ | ||
["_id","content"], | ||
[1,"I tried Groonga."] | ||
] | ||
truncate Diaries | ||
[[0,0.0,0.0],true] | ||
dump | ||
table_create Diaries TABLE_NO_KEY | ||
column_create Diaries content COLUMN_SCALAR Text | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
table_create Diaries TABLE_NO_KEY | ||
column_create Diaries content COLUMN_SCALAR Text | ||
|
||
load --table Diaries | ||
[ | ||
{"content": "I tried Groonga."} | ||
] | ||
|
||
dump | ||
|
||
truncate Diaries | ||
|
||
dump |