Merge lp://staging/~diego-fmpwizard/drizzle/plugin-functions-error-messages into lp://staging/~drizzle-trunk/drizzle/development

Proposed by fmpwizard
Status: Merged
Approved by: Jay Pipes
Approved revision: 1126
Merged at revision: not available
Proposed branch: lp://staging/~diego-fmpwizard/drizzle/plugin-functions-error-messages
Merge into: lp://staging/~drizzle-trunk/drizzle/development
Diff against target: None lines
To merge this branch: bzr merge lp://staging/~diego-fmpwizard/drizzle/plugin-functions-error-messages
Reviewer Review Type Date Requested Status
Stewart Smith (community) Approve
Monty Taylor Approve
Review via email: mp+10680@code.staging.launchpad.net

This proposal supersedes a proposal from 2009-08-25.

To post a comment you must log in.
Revision history for this message
fmpwizard (diego-fmpwizard) wrote : Posted in a previous version of this proposal

UDF plugin functions and built-in function use the same error message when they both receive an incorrect number of parameters.

See https://blueprints.launchpad.net/drizzle/+spec/functions-plugins-consistent-errors for more information.

Revision history for this message
Monty Taylor (mordred) wrote : Posted in a previous version of this proposal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Could we change the error message and remove the word native? For that
matter, renaming the define from ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT to
ER_WRONG_PARAMCOUNT_TO_FUNCTION might also be nice? I'm not sure we're
going to end up with a real distinction between native and non-native
functions anymore.

fmpwizard wrote:
> fmpwizard has proposed merging lp:~diego-fmpwizard/drizzle/plugin-functions-error-messages into lp:drizzle.
>
> Requested reviews:
> Drizzle-developers (drizzle-developers)
>
> UDF plugin functions and built-in function use the same error message when they both receive an incorrect number of parameters.
>
> See https://blueprints.launchpad.net/drizzle/+spec/functions-plugins-consistent-errors for more information.
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqUBUEACgkQ2Jv7/VK1RgGS/wCgpIOaImCZ99aD8IocPByEXZM7
4m8AnRn5B4jGP6q8i6EVtZnF21yItRns
=K8RJ
-----END PGP SIGNATURE-----

Revision history for this message
fmpwizard (diego-fmpwizard) wrote : Posted in a previous version of this proposal

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Could we change the error message and remove the word native? For that
> matter, renaming the define from ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT to
> ER_WRONG_PARAMCOUNT_TO_FUNCTION might also be nice? I'm not sure we're
> going to end up with a real distinction between native and non-native
> functions anymore.
>

Sounds good, I'll rename them to ER_WRONG_PARAMCOUNT_TO_FUNCTION

Thanks

   -Diego

> fmpwizard wrote:
> > fmpwizard has proposed merging lp:~diego-fmpwizard/drizzle/plugin-functions-
> error-messages into lp:drizzle.
> >
> > Requested reviews:
> > Drizzle-developers (drizzle-developers)
> >
> > UDF plugin functions and built-in function use the same error message when
> they both receive an incorrect number of parameters.
> >
> > See https://blueprints.launchpad.net/drizzle/+spec/functions-plugins-
> consistent-errors for more information.
> >
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkqUBUEACgkQ2Jv7/VK1RgGS/wCgpIOaImCZ99aD8IocPByEXZM7
> 4m8AnRn5B4jGP6q8i6EVtZnF21yItRns
> =K8RJ
> -----END PGP SIGNATURE-----

Revision history for this message
Monty Taylor (mordred) wrote :

Love it. Merging.

review: Approve
Revision history for this message
Stewart Smith (stewart) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'client/errname.cc'
--- client/errname.cc 2009-08-05 22:50:03 +0000
+++ client/errname.cc 2009-08-25 18:22:32 +0000
@@ -615,7 +615,7 @@
615 { "ER_UNSUPORTED_LOG_ENGINE",1579 },615 { "ER_UNSUPORTED_LOG_ENGINE",1579 },
616 { "ER_BAD_LOG_STATEMENT",1580 },616 { "ER_BAD_LOG_STATEMENT",1580 },
617 { "ER_CANT_RENAME_LOG_TABLE",1581 },617 { "ER_CANT_RENAME_LOG_TABLE",1581 },
618 { "ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT",1582 },618 { "ER_WRONG_PARAMCOUNT_TO_FUNCTION",1582 },
619 { "ER_WRONG_PARAMETERS_TO_NATIVE_FCT",1583 },619 { "ER_WRONG_PARAMETERS_TO_NATIVE_FCT",1583 },
620 { "ER_WRONG_PARAMETERS_TO_STORED_FCT",1584 },620 { "ER_WRONG_PARAMETERS_TO_STORED_FCT",1584 },
621 { "ER_NATIVE_FCT_NAME_COLLISION",1585 },621 { "ER_NATIVE_FCT_NAME_COLLISION",1585 },
622622
=== modified file 'drizzled/error.cc'
--- drizzled/error.cc 2009-06-26 06:25:57 +0000
+++ drizzled/error.cc 2009-08-25 18:22:32 +0000
@@ -1194,7 +1194,7 @@
1194N_("You cannot '%s' a log table if logging is enabled"),1194N_("You cannot '%s' a log table if logging is enabled"),
1195/* ER_CANT_RENAME_LOG_TABLE */1195/* ER_CANT_RENAME_LOG_TABLE */
1196N_("Cannot rename '%s'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to '%s'"),1196N_("Cannot rename '%s'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to '%s'"),
1197/* ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT 42000 */1197/* ER_WRONG_PARAMCOUNT_TO_FUNCTION 42000 */
1198N_("Incorrect parameter count in the call to native function '%-.192s'"),1198N_("Incorrect parameter count in the call to native function '%-.192s'"),
1199/* ER_WRONG_PARAMETERS_TO_NATIVE_FCT 42000 */1199/* ER_WRONG_PARAMETERS_TO_NATIVE_FCT 42000 */
1200N_("Incorrect parameters in the call to native function '%-.192s'"),1200N_("Incorrect parameters in the call to native function '%-.192s'"),
12011201
=== modified file 'drizzled/error.h'
--- drizzled/error.h 2009-06-16 03:02:59 +0000
+++ drizzled/error.h 2009-08-25 18:22:32 +0000
@@ -611,7 +611,7 @@
611 ER_UNSUPORTED_LOG_ENGINE,611 ER_UNSUPORTED_LOG_ENGINE,
612 ER_BAD_LOG_STATEMENT,612 ER_BAD_LOG_STATEMENT,
613 ER_CANT_RENAME_LOG_TABLE,613 ER_CANT_RENAME_LOG_TABLE,
614 ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT,614 ER_WRONG_PARAMCOUNT_TO_FUNCTION,
615 ER_WRONG_PARAMETERS_TO_NATIVE_FCT,615 ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
616 ER_WRONG_PARAMETERS_TO_STORED_FCT,616 ER_WRONG_PARAMETERS_TO_STORED_FCT,
617 ER_NATIVE_FCT_NAME_COLLISION,617 ER_NATIVE_FCT_NAME_COLLISION,
618618
=== modified file 'drizzled/item/create.cc'
--- drizzled/item/create.cc 2009-08-17 20:54:05 +0000
+++ drizzled/item/create.cc 2009-08-25 18:22:32 +0000
@@ -1480,7 +1480,7 @@
14801480
1481 if(!func->check_argument_count(arg_count))1481 if(!func->check_argument_count(arg_count))
1482 {1482 {
1483 my_error(ER_WRONG_PARAMETERS_TO_NATIVE_FCT, MYF(0), func->func_name());1483 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), func->func_name());
1484 return NULL;1484 return NULL;
1485 }1485 }
14861486
@@ -1514,7 +1514,7 @@
15141514
1515 if (arg_count != 0)1515 if (arg_count != 0)
1516 {1516 {
1517 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1517 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1518 return NULL;1518 return NULL;
1519 }1519 }
15201520
@@ -1532,7 +1532,7 @@
15321532
1533 if (arg_count != 1)1533 if (arg_count != 1)
1534 {1534 {
1535 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1535 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1536 return NULL;1536 return NULL;
1537 }1537 }
15381538
@@ -1558,7 +1558,7 @@
15581558
1559 if (arg_count != 2)1559 if (arg_count != 2)
1560 {1560 {
1561 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1561 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1562 return NULL;1562 return NULL;
1563 }1563 }
15641564
@@ -1586,7 +1586,7 @@
15861586
1587 if (arg_count != 3)1587 if (arg_count != 3)
1588 {1588 {
1589 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1589 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1590 return NULL;1590 return NULL;
1591 }1591 }
15921592
@@ -1660,7 +1660,7 @@
1660 }1660 }
1661 default:1661 default:
1662 {1662 {
1663 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1663 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1664 break;1664 break;
1665 }1665 }
1666 }1666 }
@@ -1710,7 +1710,7 @@
17101710
1711 if (arg_count < 1)1711 if (arg_count < 1)
1712 {1712 {
1713 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1713 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1714 return NULL;1714 return NULL;
1715 }1715 }
17161716
@@ -1732,7 +1732,7 @@
1732 /* "WS" stands for "With Separator": this function takes 2+ arguments */1732 /* "WS" stands for "With Separator": this function takes 2+ arguments */
1733 if (arg_count < 2)1733 if (arg_count < 2)
1734 {1734 {
1735 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1735 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1736 return NULL;1736 return NULL;
1737 }1737 }
17381738
@@ -1848,7 +1848,7 @@
18481848
1849 if (arg_count < 2)1849 if (arg_count < 2)
1850 {1850 {
1851 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1851 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1852 return NULL;1852 return NULL;
1853 }1853 }
18541854
@@ -1909,7 +1909,7 @@
1909 }1909 }
1910 default:1910 default:
1911 {1911 {
1912 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1912 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1913 break;1913 break;
1914 }1914 }
1915 }1915 }
@@ -1931,7 +1931,7 @@
19311931
1932 if (arg_count < 2)1932 if (arg_count < 2)
1933 {1933 {
1934 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);1934 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
1935 return NULL;1935 return NULL;
1936 }1936 }
19371937
@@ -2013,7 +2013,7 @@
2013 }2013 }
2014 default:2014 default:
2015 {2015 {
2016 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2016 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2017 break;2017 break;
2018 }2018 }
2019 }2019 }
@@ -2035,7 +2035,7 @@
20352035
2036 if (arg_count < 2)2036 if (arg_count < 2)
2037 {2037 {
2038 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2038 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2039 return NULL;2039 return NULL;
2040 }2040 }
20412041
@@ -2114,7 +2114,7 @@
2114 }2114 }
2115 default:2115 default:
2116 {2116 {
2117 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2117 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2118 break;2118 break;
2119 }2119 }
2120 }2120 }
@@ -2145,7 +2145,7 @@
21452145
2146 if (arg_count < 2)2146 if (arg_count < 2)
2147 {2147 {
2148 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2148 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2149 return NULL;2149 return NULL;
2150 }2150 }
21512151
@@ -2203,7 +2203,7 @@
2203 }2203 }
2204 default:2204 default:
2205 {2205 {
2206 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2206 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2207 break;2207 break;
2208 }2208 }
2209 }2209 }
@@ -2240,7 +2240,7 @@
2240 }2240 }
2241 default:2241 default:
2242 {2242 {
2243 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2243 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2244 break;2244 break;
2245 }2245 }
2246 }2246 }
@@ -2307,7 +2307,7 @@
23072307
2308 if (arg_count < 2)2308 if (arg_count < 2)
2309 {2309 {
2310 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2310 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2311 return NULL;2311 return NULL;
2312 }2312 }
23132313
@@ -2435,7 +2435,7 @@
2435 }2435 }
2436 default:2436 default:
2437 {2437 {
2438 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2438 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2439 break;2439 break;
2440 }2440 }
2441 }2441 }
@@ -2473,7 +2473,7 @@
2473 }2473 }
2474 default:2474 default:
2475 {2475 {
2476 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2476 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2477 break;2477 break;
2478 }2478 }
2479 }2479 }
@@ -2651,7 +2651,7 @@
2651 }2651 }
2652 default:2652 default:
2653 {2653 {
2654 my_error(ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT, MYF(0), name.str);2654 my_error(ER_WRONG_PARAMCOUNT_TO_FUNCTION, MYF(0), name.str);
2655 break;2655 break;
2656 }2656 }
2657 }2657 }
26582658
=== modified file 'drizzled/sql_state.cc'
--- drizzled/sql_state.cc 2009-07-07 09:06:29 +0000
+++ drizzled/sql_state.cc 2009-08-25 18:22:32 +0000
@@ -240,7 +240,7 @@
240 { ER_NON_GROUPING_FIELD_USED ,"42000", "" },240 { ER_NON_GROUPING_FIELD_USED ,"42000", "" },
241 { ER_FOREIGN_DUPLICATE_KEY ,"23000", "S1009" },241 { ER_FOREIGN_DUPLICATE_KEY ,"23000", "S1009" },
242 { ER_CANT_CHANGE_TX_ISOLATION ,"25001", "" },242 { ER_CANT_CHANGE_TX_ISOLATION ,"25001", "" },
243 { ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT ,"42000", "" },243 { ER_WRONG_PARAMCOUNT_TO_FUNCTION ,"42000", "" },
244 { ER_WRONG_PARAMETERS_TO_NATIVE_FCT ,"42000", "" },244 { ER_WRONG_PARAMETERS_TO_NATIVE_FCT ,"42000", "" },
245 { ER_WRONG_PARAMETERS_TO_STORED_FCT ,"42000", "" },245 { ER_WRONG_PARAMETERS_TO_STORED_FCT ,"42000", "" },
246 { ER_DUP_ENTRY_WITH_KEY_NAME ,"23000", "S1009" },246 { ER_DUP_ENTRY_WITH_KEY_NAME ,"23000", "S1009" },
247247
=== modified file 'tests/r/crc32.result'
--- tests/r/crc32.result 2009-06-09 03:59:56 +0000
+++ tests/r/crc32.result 2009-08-25 14:58:48 +0000
@@ -14,9 +14,9 @@
14CRC32("I love testing") = CRC32(some_text)14CRC32("I love testing") = CRC32(some_text)
151151
16SELECT CRC32();16SELECT CRC32();
17ERROR 42000: Incorrect parameters in the call to native function 'crc32'17ERROR 42000: Incorrect parameter count in the call to native function 'crc32'
18SELECT CRC32('foo','bar','zoo');18SELECT CRC32('foo','bar','zoo');
19ERROR 42000: Incorrect parameters in the call to native function 'crc32'19ERROR 42000: Incorrect parameter count in the call to native function 'crc32'
20SELECT CRC32('');20SELECT CRC32('');
21CRC32('')21CRC32('')
220220
2323
=== modified file 'tests/r/func_compress.result'
--- tests/r/func_compress.result 2009-04-24 20:44:50 +0000
+++ tests/r/func_compress.result 2009-08-25 14:58:48 +0000
@@ -116,14 +116,14 @@
116drop table t1;116drop table t1;
117End of 5.0 tests117End of 5.0 tests
118select compress();118select compress();
119ERROR 42000: Incorrect parameters in the call to native function 'compress'119ERROR 42000: Incorrect parameter count in the call to native function 'compress'
120select uncompress();120select uncompress();
121ERROR 42000: Incorrect parameters in the call to native function 'uncompress'121ERROR 42000: Incorrect parameter count in the call to native function 'uncompress'
122select uncompressed_length();122select uncompressed_length();
123ERROR 42000: Incorrect parameters in the call to native function 'uncompressed_length'123ERROR 42000: Incorrect parameter count in the call to native function 'uncompressed_length'
124select compress('aeou', 'aoeu', 'aoeu');124select compress('aeou', 'aoeu', 'aoeu');
125ERROR 42000: Incorrect parameters in the call to native function 'compress'125ERROR 42000: Incorrect parameter count in the call to native function 'compress'
126select uncompress('aoenuthn', 'aoeu');126select uncompress('aoenuthn', 'aoeu');
127ERROR 42000: Incorrect parameters in the call to native function 'uncompress'127ERROR 42000: Incorrect parameter count in the call to native function 'uncompress'
128select uncompressed_length('aneohusa','naohuntah','onh');128select uncompressed_length('aneohusa','naohuntah','onh');
129ERROR 42000: Incorrect parameters in the call to native function 'uncompressed_length'129ERROR 42000: Incorrect parameter count in the call to native function 'uncompressed_length'
130130
=== modified file 'tests/t/crc32.test'
--- tests/t/crc32.test 2009-06-09 03:59:56 +0000
+++ tests/t/crc32.test 2009-08-25 18:22:32 +0000
@@ -18,9 +18,9 @@
18SELECT CRC32("I love testing") = CRC32(some_text) FROM t1;18SELECT CRC32("I love testing") = CRC32(some_text) FROM t1;
1919
20# Check for error if no parameter provided20# Check for error if no parameter provided
21--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT21--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
22SELECT CRC32();22SELECT CRC32();
23--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT23--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
24SELECT CRC32('foo','bar','zoo');24SELECT CRC32('foo','bar','zoo');
2525
26# Check that various inputs are processed correctly26# Check that various inputs are processed correctly
2727
=== modified file 'tests/t/func_compress.test'
--- tests/t/func_compress.test 2009-04-24 20:44:50 +0000
+++ tests/t/func_compress.test 2009-08-25 18:22:32 +0000
@@ -86,16 +86,16 @@
8686
87# parameter count87# parameter count
8888
89--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT89--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
90select compress();90select compress();
91--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT91--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
92select uncompress();92select uncompress();
93--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT93--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
94select uncompressed_length();94select uncompressed_length();
9595
96--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT96--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
97select compress('aeou', 'aoeu', 'aoeu');97select compress('aeou', 'aoeu', 'aoeu');
98--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT98--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
99select uncompress('aoenuthn', 'aoeu');99select uncompress('aoenuthn', 'aoeu');
100--error ER_WRONG_PARAMETERS_TO_NATIVE_FCT100--error ER_WRONG_PARAMCOUNT_TO_FUNCTION
101select uncompressed_length('aneohusa','naohuntah','onh');101select uncompressed_length('aneohusa','naohuntah','onh');
102\ No newline at end of file102\ No newline at end of file
103103
=== modified file 'tests/t/parser.test'
--- tests/t/parser.test 2009-02-21 16:00:06 +0000
+++ tests/t/parser.test 2009-08-25 18:22:32 +0000
@@ -346,94 +346,94 @@
346346
347# Test coverage with edge conditions347# Test coverage with edge conditions
348348
349-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT349-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
350select pi(3.14);350select pi(3.14);
351351
352-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT352-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
353select tan();353select tan();
354-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT354-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
355select tan(1, 2);355select tan(1, 2);
356356
357-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT357-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
358select makedate(1);358select makedate(1);
359-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT359-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
360select makedate(1, 2, 3);360select makedate(1, 2, 3);
361361
362-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT362-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
363select atan();363select atan();
364-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT364-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
365select atan2(1, 2, 3);365select atan2(1, 2, 3);
366366
367-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT367-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
368select concat();368select concat();
369select concat("foo");369select concat("foo");
370370
371-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT371-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
372select concat_ws();372select concat_ws();
373-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT373-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
374select concat_ws("foo");374select concat_ws("foo");
375375
376-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT376-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
377select elt();377select elt();
378-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT378-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
379select elt(1);379select elt(1);
380380
381-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT381-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
382select export_set();382select export_set();
383-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT383-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
384select export_set("p1");384select export_set("p1");
385-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT385-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
386select export_set("p1", "p2");386select export_set("p1", "p2");
387-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT387-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
388select export_set("p1", "p2", "p3", "p4", "p5", "p6");388select export_set("p1", "p2", "p3", "p4", "p5", "p6");
389389
390-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT390-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
391select field();391select field();
392-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT392-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
393select field("p1");393select field("p1");
394394
395-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT395-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
396select from_unixtime();396select from_unixtime();
397-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT397-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
398select from_unixtime(1, 2, 3);398select from_unixtime(1, 2, 3);
399399
400-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT400-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
401select unix_timestamp(1, 2);401select unix_timestamp(1, 2);
402402
403-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT403-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
404select greatest();404select greatest();
405-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT405-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
406select greatest(12);406select greatest(12);
407407
408-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT408-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
409select last_insert_id(1, 2);409select last_insert_id(1, 2);
410410
411-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT411-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
412select least();412select least();
413-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT413-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
414select least(12);414select least(12);
415415
416-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT416-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
417select locate();417select locate();
418-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT418-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
419select locate(1);419select locate(1);
420-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT420-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
421select locate(1, 2, 3, 4);421select locate(1, 2, 3, 4);
422422
423-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT423-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
424select log();424select log();
425-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT425-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
426select log(1, 2, 3);426select log(1, 2, 3);
427427
428-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT428-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
429select make_set();429select make_set();
430-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT430-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
431select make_set(1);431select make_set(1);
432432
433-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT433-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
434select rand(1, 2, 3);434select rand(1, 2, 3);
435435
436-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT436-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
437select round(1, 2, 3);437select round(1, 2, 3);
438438
439#439#