Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FYI; Problem with PADL; .NULL. in SELECT SQL
Message
 
 
To
22/06/2009 08:48:49
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01407500
Message ID:
01407527
Views:
45
>Gregory:
>
>as mentioned in the initial message:
>
>No behaviour change
>
>The record with this problem is deleted anyway and never comes up into the resultset
>
>BTW, it would be
>
>
>padr(nvl(field, SET("Nulldisplay")), 11)
>
>
>Agnes
>
>Update:
>
>Hm. I'm shure to have thisone tested, but now it gives right result with NVL. Need to re check
>
> Anyway, its wrong behaviour.
>
>?PADR(.NULL.,11) gives a result.
>

PADR(NULL,n) returns NULL. So, you always need to convert NULL to a string.

Need to check if this behavior (PADR(NULL) = NULL) is documented.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform