Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
175707e5
Commit
175707e5
authored
Aug 05, 2015
by
antirez
Browse files
Test: csvdump now scans all DBs.
parent
a5a06a8e
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/support/util.tcl
View file @
175707e5
...
...
@@ -262,9 +262,11 @@ proc formatCommand {args} {
proc csvdump r
{
set o
{}
for
{
set db 0
}
{
$db
< 16
}
{
incr db
}
{
{*}
$r
select $db
foreach k
[
lsort
[
{*}
$r
keys *
]]
{
set type
[
{*}
$r
type $k
]
append o
[
csvstring $k
]
,
[
csvstring $type
]
,
append o
[
csvstring
$db
]
,
[
csvstring
$k
]
,
[
csvstring $type
]
,
switch $type
{
string
{
append o
[
csvstring
[
{*}
$r
get $k
]]
"
\n
"
...
...
@@ -302,6 +304,8 @@ proc csvdump r {
}
}
}
}
{*}
$r
select 9
return $o
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment