![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Has anyone run into this before? Is it documented as expected behavior somewhere, or just a bug? I have a statement like this in a stored procedure (vNewPwd is a SHA1 hash value which is a 40-digit hex number): IF HEX ( UNHEX( vNewPwd )) != vNewPwd THEN --- END IF; The procedure compiles OK, but calling it gives me the rather strange runtime error "Function myschema.HEX does not exist". (?!?! -- of course it doesn't exist because there is a perfectly good built-in HEX() function in MySQL...) If I remove the spaces and put parentheses around the function calls, it works: IF (HEX(UNHEX(vNewPwd)) != vNewPwd) THEN --- END IF; However, in other languages I like to increase readability by inserting spaces sometimes. Or is it just the extra parentheses that make a difference? |
#3
| |||
| |||
|
|
Has anyone run into this before? Is it documented as expected behavior somewhere, or just a bug? I have a statement like this in a stored procedure (vNewPwd is a SHA1 hash value which is a 40-digit hex number): IF HEX ( UNHEX( vNewPwd )) != vNewPwd THEN --- END IF; The procedure compiles OK, but calling it gives me the rather strange runtime error "Function myschema.HEX does not exist". (?!?! -- of course it doesn't exist because there is a perfectly good built-in HEX() function in MySQL...) If I remove the spaces and put parentheses around the function calls, it works: IF (HEX(UNHEX(vNewPwd)) != vNewPwd) THEN --- END IF; However, in other languages I like to increase readability by inserting spaces sometimes. Or is it just the extra parentheses that make a difference? |
#4
| |||
| |||
|
|
Has anyone run into this before? Is it documented as expected behavior somewhere, or just a bug? |
|
However, in other languages I like to increase readability by inserting spaces sometimes. Or is it just the extra parentheses that make a difference? |
![]() |
| Thread Tools | |
| Display Modes | |
| |