Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 11 to 16 of 16 total |
DBIsam 4 to EDB2 : Is there a NULL problem ? |
Tue, Jul 15 2008 2:50 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< Thank you Oh mighty one, but let me guess clob IS NULL still wouldn't be the same as clob = ''? >> No, that's a different issue. -- Tim Young Elevate Software www.elevatesoft.com |
Tue, Jul 15 2008 2:58 PM | Permanent Link |
Heiko Knuettel | Roy
>>let me guess clob IS NULL still wouldn't be the same as clob = ''? But that's not absolutely necessary. Write 2 Delphi functions for replacing Field.isNull and Field.Clear. If you plant them into subclassed TEDBQuery and TEDBTable components, there is minimum code to change, can maybe even done fully automated with regex. Or get GExperts, use the Grep Search (I love it), search for ).isNull and ).Clear, replace it with your functions. For the queries, search for =null, and replace the CLOB and varchar ones with =''. Done that today, will finish tomorrow...and in comparison it was much less work than rewriting all those "update from" queries... Heiko |
Wed, Jul 16 2008 2:43 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
Not complaining, just making doubly sure. Roy Lambert |
Wed, Jul 16 2008 2:58 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Heiko
>But that's not absolutely necessary. Write 2 Delphi functions for replacing Field.isNull >and Field.Clear. If you plant them into subclassed TEDBQuery and TEDBTable components, Its easy enough to write a couple of utility routines, and I may eventually do so. But they would have to take the form IsItEmpty(field) rather than field.IsItEmpty. Functions like .IsNull and .Clear go back to TField in DB and eventually TDataSet. I doubt that subclassing TField, or TDataSet would achieve anything without ElevateDB source (Tim?) so it would mean hacking DB which is something I'd prefer to avoid. >there is minimum code to change, can maybe even done fully automated with regex. Or get >GExperts, use the Grep Search (I love it), search for ).isNull and ).Clear, replace it >with your functions. I use a utility I wrote when I first moved from BDE to DBISAM Roy Lambert |
Sat, Jul 26 2008 9:39 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Enrico
I've posted the code into the extensions ng. Not a great deal to it though Roy Lambert |
Mon, Jul 28 2008 5:07 AM | Permanent Link |
"Enrico Ghezzi" | > I've posted the code into the extensions ng. Not a great deal to it though
> TNX ^^ |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Tuesday, April 30, 2024 at 03:55 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |