1. EDS change request
- Posted by Frank Dowling <frank at f?ankied.com> Jul 06, 2007
- 546 views
This is not a major problem at all, you can easily fix it with inline code within the calling program - but I propose a very minor change within the database.e file, for the sake of completeness of EXW completely supporting the forwardslash only. I couldn't work out why the hell db_compress() was failing for an hour or so, I was really scratching my head. The forwardslash works fine in *all* aspects of Euphoria IO except for db_compress (windows doesn't like the copy path). Given that the database.e include file is part of the actual euphoria distribution,I think it'd be pertinent to include default support for the forwardslash within the windows distribution. My code tends to look like this, given when developing websites I use one set of code which will work on either linux/apache or windows/apache without modification:
include mod/cgi/http.e include mod/cgi/whatever.e fn = open("raw.log","a") puts(fn,xdate) x = db_open("pvt/eds/cms.edb",DB_LOCK_NO) ? db_select_table("cmsx") ? db_find_key("menu_tree")
... so after a long time doing this (and never using db_compress()) it never occured to me what the problem was.
2. Re: EDS change request
- Posted by Robert Craig <rds at RapidEuphori?.com> Jul 10, 2007
- 550 views
- Last edited Jul 11, 2007
FD(censored) wrote: > This is not a major problem at all, you can easily fix it with inline code > within > the calling program - but I propose a very minor change within the database.e > file, for the sake of completeness of EXW completely supporting the > forwardslash > only. > I couldn't work out why the hell db_compress() was failing for an hour or so, > I was really scratching my head. > > The forwardslash works fine in *all* aspects of Euphoria IO except for > db_compress > (windows doesn't like the copy path). Given that the database.e include file > is part of the actual euphoria distribution,I think it'd be pertinent to > include > default support for the forwardslash within the windows distribution. I see one place in database.e, in name_only(), which is only used by db_compress(), where I've hard-coded a backslash. I'll change that so forward slash will work on Linux/FreeBSD (which is an even worse bug), and either forward slash or back slash will work on Windows. Thanks, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com