Re: SQLResult chokes on null values?

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 68119
interpreted = N
texte = Are you trying to return just the records that have a NULL value in that field? Forewarning, webdna's native SQL sometimes can be strange. -Adam Olin Lagon wrote: > Heh anyone have problems with SQLResult choking when it gets to a null > value? It just stops rendering a page once it gets to a field where the > value is null. For instance, page stops rendering right after the field is > called on the null value: > > [SQLConnect dbType=MySQL&...&var=conn1][/SQLConnect] > > [SQLExecute conn_ref=conn1&result_var=rs1] select * from TABLE; > [/SQLExecute] > > [SQLResult result_ref=rs1] > [numFound] records found
> [FoundItems] > [the field which has a null value]
> [/FoundItems] > [/SQLResult] > > Any ideas? Thanks! Olin > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: SQLResult chokes on null values? ( "Olin Lagon" 2006)
  2. Re: SQLResult chokes on null values? ( "Adam O'Connor" 2006)
  3. SQLResult chokes on null values? ( "Olin Lagon" 2006)
Are you trying to return just the records that have a NULL value in that field? Forewarning, webdna's native SQL sometimes can be strange. -Adam Olin Lagon wrote: > Heh anyone have problems with SQLResult choking when it gets to a null > value? It just stops rendering a page once it gets to a field where the > value is null. For instance, page stops rendering right after the field is > called on the null value: > > [SQLConnect dbType=MySQL&...&var=conn1][/SQLConnect] > > [SQLExecute conn_ref=conn1&result_var=rs1] select * from TABLE; > [/SQLExecute] > > [SQLResult result_ref=rs1] > [numFound] records found
> [founditems] > [the field which has a null value]
> [/FoundItems] > [/SQLResult] > > Any ideas? Thanks! Olin > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Adam O'Connor"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2b15MacPlugin - showing [math] (1997) [OT] DOD again *MYSTERY SOLVED* (2003) Not really WebCat (1997) Reversed words (1997) Was 5.0 Pricing, now Sandbox versus Website and ruminating (2003) many-to-one problem (1998) [REFERRER] works with form posts (2003) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) apostrophe in search item (1997) WebCat editing, SiteGuard & SiteEdit (1997) New Command prefs ... (1997) encryption madness (2003) Variables for chat (1997) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) webcat and OS 8 (1997) WebCat2.0 [format thousands .0f] no go (1997) Using Plug-In while running 1.6.1 (1997) WebMerchant 1.6 and SHTML (1997) RE: [WebDNA] OT: FCKeditor (2008) RE: Automatic Forwarding using WebCat (1997)