Skip to content

Commit b46cbbe

Browse files
committedSep 26, 2015
fix mixup between lpad/rpad help (fixes #13433)
1 parent 56b5d4e commit b46cbbe

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed
 

‎resources/function_help/json/lpad

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
2-
"name": "lpad",
2+
"name": "rpad",
33
"type": "function",
44
"description": "Returns a string padded to supplied width using a fill character.",
5-
"arguments": [
6-
{"arg":"string","description":"string to pad"},
7-
{"arg":"width","description":"length of new string"},
8-
{"arg":"fill","description":"character to pad the remaining space with"}
5+
"arguments": [ {"arg":"string","description":"string to pad"},
6+
{"arg":"width","description":"length of new string"},
7+
{"arg":"fill","description":"character to pad the remaining space with"}
98
],
10-
"examples": [ { "expression":"lpad('Hello', 10, 'x')", "returns":"'Helloxxxxx'"}
9+
"examples": [ { "expression":"rpad('Hello', 10, 'x')", "returns":"'xxxxxHello'"}
1110
]
1211
}

‎resources/function_help/json/rpad

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"name": "rpad",
2+
"name": "lpad",
33
"type": "function",
44
"description": "Returns a string padded to supplied width using a fill character.",
5-
"arguments": [ {"arg":"string","description":"string to pad"},
6-
{"arg":"width","description":"length of new string"},
7-
{"arg":"fill","description":"character to pad the remaining space with"}
5+
"arguments": [
6+
{"arg":"string","description":"string to pad"},
7+
{"arg":"width","description":"length of new string"},
8+
{"arg":"fill","description":"character to pad the remaining space with"}
89
],
9-
"examples": [ { "expression":"rpad('Hello', 10, 'x')", "returns":"'xxxxxHello'"}
10+
"examples": [ { "expression":"lpad('Hello', 10, 'x')", "returns":"'Helloxxxxx'"}
1011
]
1112
}

1 commit comments

Comments
 (1)

nyalldawson commented on Sep 26, 2015

@nyalldawson
Collaborator

@jef-n this doesn't look quite right - the function names and examples have now been flipped

Please sign in to comment.