mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Fix small bug in udf_example.cc, it was processing one char too much and thus returning junk
Add more DBUG_PRINT's in udf_handler::val_str Enable udf.test mysql-test/t/disabled.def: Enable udf.test sql/item_func.cc: Add DBUG_ printouts for easier debugging of installed udf's sql/udf_example.cc: Bug fix, break for loop when "n < n_end"
This commit is contained in:
@@ -344,7 +344,7 @@ char *metaphon(UDF_INIT *initid, UDF_ARGS *args, char *result,
|
||||
KSflag = 0; /* state flag for KS translation */
|
||||
|
||||
for (metaph_end = result + MAXMETAPH, n_start = n;
|
||||
n <= n_end && result < metaph_end; n++ )
|
||||
n < n_end && result < metaph_end; n++ )
|
||||
{
|
||||
|
||||
if ( KSflag )
|
||||
|
Reference in New Issue
Block a user