Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 10 of 15 total |
Computed columns aka Roy's Null wars |
Sat, Jun 21 2008 10:54 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Creating a computed column VARCHAR(4)
ElevateDB error #700, an error was found in the statement at line 2 and column 100 (Expected BETWEEN, LIKE, IN but instead found NULL) The computation was IF(_Title IS NULL,'',_Title) Roy Lambert ps can we have a button on the error messages to copy to clipboard - it would certainly save me typing and might give you better error reporting. |
Sat, Jun 21 2008 11:05 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | This does work so its the app (EDBManager) not the engine.
ALTER TABLE "Contacts" ADD Column "_sTitle" VARCHAR(4) COMPUTED ALWAYS AS IF(_Title IS NULL,'',_Title); Another one (I think its been asked before) can we have someway of seeing the sql generated, especially when it raises two fingers? Roy Lambert |
Sat, Jun 21 2008 11:30 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< Creating a computed column VARCHAR(4) ElevateDB error #700, an error was found in the statement at line 2 and column 100 (Expected BETWEEN, LIKE, IN but instead found NULL) The computation was IF(_Title IS NULL,'',_Title) >> That works fine here. As for the error messages - the idea is that you shouldn't get compilation errors when using the dialogs unless you're actually inputting SQL. The only exception to this is the column-based expressions, which I don't have good solution for yet because it's hard to trace the expression error back to the generated SQL. -- Tim Young Elevate Software www.elevatesoft.com |
Sat, Jun 21 2008 12:04 PM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
Just tried again with a different table with the same result. V2.00b1 You should have the catlog - the one I sent for the delete/insert speed problem - if you want to try it with my catalog. There might be a difference since I reran the conversion routines setting string fields to '' and not nullable, but I did try setting the fields I was experimenting back to null and nullable with no difference. Roy Lambert |
Sat, Jun 21 2008 1:58 PM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
Just tried with b2 and the problem is still there. Roy Lambert |
Sat, Jun 21 2008 2:20 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< You should have the catlog - the one I sent for the delete/insert speed problem - if you want to try it with my catalog. There might be a difference since I reran the conversion routines setting string fields to '' and not nullable, but I did try setting the fields I was experimenting back to null and nullable with no difference. >> I just did it again with your Contacts table, no problem. This is the SQL that is generated by the EDB Manager (via the SQL History): ALTER TABLE "Contacts" ADD COLUMN "_sTitle" VARCHAR(4) COLLATE "ANSI" COMPUTED ALWAYS AS IF(_Title IS NULL,'',_Title) -- Tim Young Elevate Software www.elevatesoft.com |
Sat, Jun 21 2008 5:18 PM | Permanent Link |
"Uli Becker" | Roy,
<< ps can we have a button on the error messages to copy to clipboard - it would certainly save me typing and might give you better error reporting. >> Did you ever try to press CTRL+C while the messagebox has the focus? It works! Uli |
Sun, Jun 22 2008 4:19 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Uli
>Did you ever try to press CTRL+C while the messagebox has the focus? It >works! How did you discover that? I've been trying to swipe the message to copy it, never thought of just pressing ctrl-C . Thanks muchly. Roy Lambert |
Sun, Jun 22 2008 4:41 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
>I just did it again with your Contacts table, no problem. This is the SQL >that is generated by the EDB Manager (via the SQL History): > >ALTER TABLE "Contacts" >ADD COLUMN "_sTitle" VARCHAR(4) COLLATE "ANSI" COMPUTED ALWAYS AS IF(_Title >IS NULL,'',_Title) I just tried again with two different tables and I get the same problem. But I have now found out what the problem is. If you uncheck Nullable you get the problem, check nullable and it works. It would have been left in whatever state it defaulted to when I opened EDBManager and because my personal view is that nullable is immaterial for a computed column (and probably for a generated one) I never bothered checking or even thought about it. Roy Lambert |
Sun, Jun 22 2008 5:03 AM | Permanent Link |
"Uli Becker" | Roy,
> How did you discover that? I've been trying to swipe the message to copy > it, never thought of just pressing ctrl-C . That seems to be a quite unknown feature of all Windows messageboxes. Long time ago I discovered it in a ng. http://tinyurl.com/2s7bs6 Regards Uli |
Page 1 of 2 | Next Page » | |
Jump to Page: 1 2 |
This web page was last updated on Sunday, May 19, 2024 at 08:46 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |