Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Formatting Text Field - Form: msg#00040

db.rekall.general

Subject: Re: Formatting Text Field - Form

On Thursday 17 March 2005 19:17, Thomas W Ping wrote:
> > > Mike, while I have your ear, I have another small-but-aggravating
> > > issue I'd like to toss at you. In this table *and* in a little
> > > totally separate test table I made just to look at this issue (in a
> > > separate test database), I have date fields (not date:time, just
> > > date) that are set up within MySQL to be null-okay. If I edit the
> > > dates via a Rekall *form* (with those fields set up in Rekall/form
> > > to be null-okay, as well) they work fine. But if I edit them in a
> > > Rekall *table* (where they're also set up as null-okay), once a
> > > date is saved, I can't *remove* it. I get a "[field] is not a
> > > date/time" error. It (the Rekall table) is okay with the field
> > > being blank originally, and it's okay if I've made it blank via the
> > > form. But if there's a date there when I open the table, I can't
> > > remove that date from within table data mode. Any ideas on *this*?
> >
> > Ahha - a tar pit.
>
> I live in Los Angles; we know them well. :) The La Brea Tar Pits are
> probably the best known here. They're still pulling fossils out of
> them, I believe. Personally, I'll readily cop to being a geezer, but
> I'm trying to stay away from the fossil descriptor.
>
> > First off, there is a field setting "emptynull" that you can set in
> > forms that converts empty strings to null as they are saved ... have
> > you perchance set this is the form?
>
> Yes, I have -- from the beginning.
>
> I see no such setting for the table.
>
> So I wondered if that was at least part of the issue.
>
> > Generally, its a bit of a throny issue, when is an empty string not
> > an empty string (when its null :) Interestingly, Oracle treats empty
>
> Right. I'm used to that difference.
>
> > strings as null (which turns out to be a pain since you have to do
> > stuff like "where myfield = 'mike' ..." but "where myfield is null
> > ..." when you mean "where myfield = '' ....)
> >
> > A rekall table view is actually just a form, abliet one that is
> > constructed on the fly to match the table, so it might be appropriate
> > to set "emptynull" on date (and time and date/time) fields
> > automagically (and, maybe on numbers as well - for instance,
> > somewhere around v7.x, postgres started barfing on attempts to insert
> > empty strings as numbers, rather than coverting them to zero).
> >
> > Does this sound like a good idea, if so it should be quite trivial to
> > add???
>
> As I mentioned, I have "Null OK" enabled for the date fields in the
> table (as I do in the form). The form design GUI offers another
> parameter: "Empty is null" (at this point that is not enabled for dates
> in my form; the form does not show this problem with making a
> previously filled date field empty). What trivial change, exactly, are
> you suggesting for the table?

Sorry for the delay, been on holiday for a week.

I was suggesting making table data view do "empty is null" whenever a column
is ok to be null (ie., *not* "not null" when the table is created) and its
not a text column, on the basis that saving a record with (say) an empty date
is only sensible if it saves null. I could do the same for text columns, but
that changes the semantics a bit ....

Mike


>
>
> _______________________________________________
> Rekall mailing list
> Rekall-TvUNdCdnGOiN0BpGcQGnph2eb7JE58TQ@xxxxxxxxxxxxxxxx
> http://www.mailman.a-i-s.co.uk/cgi-bin/mailman/listinfo/rekall

--
Regards
Mike

http://www.rekallrevealed.org
*THE* GPL/Open Source database front end for Linux and Windows.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation