Re: MySQL or MaxDB or PostgreSQL or Interbase/Firebird or ?

2003-12-15 Thread David Garamond
Sven Köhler wrote: I was very disappointed by Interbase/Firebird. It seemed to me like a MS-Access: a database-engine that works on regular files Firebird seems simple, but it doesn't mean it's inferior or [intentionally] crippled like MS-Access. SQL server also works on "regular files" (db is s

Money data type in MySQL?

2003-12-03 Thread David Garamond
What do people recommend for storing money amounts? I've seen people use NUMERIC(18,3) and other use NUMERIC(18,4). Which one is more appropriate and why? This is considering various existing currencies, some having low rates (like IDR, in which you can have large amount up to hundreds of trill

Re: Storing binary data (string with nulls/ASCII 0 in them) in CHAR/VARCHAR?

2003-11-28 Thread David Garamond
David Garamond wrote: insert into t1 values (3,char(32)); Record 3, 5, and 7 is rejected due to duplicate value. ++--+--+ | id | length(code) | code | ++--+--+ | 1 |0 | | | 2 |1 | 0| | 4 |2 | 0 0 | | 6

Storing binary data (string with nulls/ASCII 0 in them) in CHAR/VARCHAR?

2003-11-28 Thread David Garamond
Can CHAR/VARCHAR store strings with nul (ASCII 0) in them? It seems it can't. [I've used CHAR(2), VARCHAR(2), CHAR(2) BINARY, VARCHAR(2) BINARY]. === create table t1 ( id int not null primary key, code varchar(2) not null, un

String functions for use in GROUP clause?

2003-10-10 Thread David Garamond
We can use SUM(), AVG(), COUNT(), etc. in GROUP clause. These are all numeric functions. Is it possible to use string functions as well? I know MIN() & MAX() can be asciibetical for string fields, but wouldn't this be very handy/practical? SELECT division, G_CONCAT(", ",first_name) as nicks,

Re: Custom/conditional grouping?

2003-09-24 Thread David Garamond
Bruce Feist wrote: David Garamond <[EMAIL PROTECTED]> wrote: CREATE TABLE `payments` ( `date` date NOT NULL, `payee` varchar(255), `amount` double ) The 'payments' table records the amount of money that should be paid to each person every month. But the actual cheque is

Re: Custom/conditional grouping?

2003-09-24 Thread David Garamond
Haydies wrote: That was an amazingly vage question. Yup, sorry for that. Accidentally sent :) -- dave -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Custom/conditional grouping?

2003-09-24 Thread David Garamond
Victoria Reznichenko wrote: David Garamond <[EMAIL PROTECTED]> wrote: Can I do this with in pure SQL (instead of having to create logic in programming language)? What do you mean "Custom/conditional grouping"? Please, be more detailed. Sorry, please refer to my other post. The

Custom/conditional grouping? (repost)

2003-09-23 Thread David Garamond
[Sorry for the accidental premature sending in the first post...] CREATE TABLE `payments` ( `date` date NOT NULL, `payee` varchar(255), `amount` double ) INSERT INTO payments VALUES ('2003-05-01','david',38); INSERT INTO payments VALUES ('2003-06-02','david',13.4); INSERT INTO payments VALUE

Custom/conditional grouping?

2003-09-23 Thread David Garamond
Can I do this with in pure SQL (instead of having to create logic in programming language)? Thanks in advance, -- dave -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Slowing brute force attack

2003-08-03 Thread David Garamond
Is there an option for mysqld to add a sleep() call after each failed connection request, before reporting to the client (to slow down brute force attack)? I glanced at the manual and there doesn't seem to be one. If there isn't, would it be a good idea? If yes, I could probably submit a patch.

mail daemons that uses database (mysql)

2003-06-03 Thread David Garamond
I'm just wondering if there is an MTA/MDA/IMAPD/Exchange-like app/other mail-related daemons that stores mail messages in a relational database like MySQL? Regards, -- dave -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EM

Re: my_raid_seek assertion failed in mysqld log

2003-04-04 Thread David Garamond
David Garamond wrote: On Fri, Apr 04, 2003 at 01:22:39PM +0700, David Garamond wrote: i found this on my server log: mysqld-max: raid.cc:160: my_off_t my_raid_seek(int, long long unsigned int, int, int): Assertion `pos != (~(my_off_t) 0)' failed. and then mysqld shuts down. i start it

Re: my_raid_seek assertion failed in mysqld log

2003-04-04 Thread David Garamond
Jeremy Zawodny wrote: On Fri, Apr 04, 2003 at 01:22:39PM +0700, David Garamond wrote: i found this on my server log: mysqld-max: raid.cc:160: my_off_t my_raid_seek(int, long long unsigned int, int, int): Assertion `pos != (~(my_off_t) 0)' failed. and then mysqld shuts down. i start it

my_raid_seek assertion failed in mysqld log

2003-04-03 Thread David Garamond
i found this on my server log: mysqld-max: raid.cc:160: my_off_t my_raid_seek(int, long long unsigned int, int, int): Assertion `pos != (~(my_off_t) 0)' failed. and then mysqld shuts down. i start it again but after a short while the same error appears and mysqld stops again. what does this ind

can 4.0.x be used to replace 3.23.xx _now_?

2002-12-05 Thread David Garamond
i read in several places (like in recent osnews.com newspiece and some other prior postings to this list) that mysql 4.0.x is supposed to be "stable" now. but the front page of mysql.com still lists 4.0.5 under "development". so does the mysql developers suggest that mysql is still "unstable" o

Re: rounding behaviour

2002-11-03 Thread David Garamond
David Garamond wrote: mysql> select 1/29; +--+ | 0.03 | +--+ mysql> select 100.0*1/29; ++ | 3.448 | ++ mysql> select 1/29*100.0; ++ | 3.45 | ++ sorry for the previous post, misleading problem statement. the exact pr

rounding behaviour

2002-11-03 Thread David Garamond
hi, mysql> select 1/29; +--+ | 1/29 | +--+ | 0.03 | +--+ 1 row in set (0.00 sec) mysql> select 100.0*1/29; ++ | 100.0*1/29 | ++ | 3.448 | ++ 1 row in set (0.00 sec) mysql> select 1/29*100.0; ++ | 1/29*100.0 | ++ |

Re: MySQl db as filesystem.

2002-10-13 Thread David Garamond
Jan Steinman wrote: > Today's "modern" operating systems really stopped evolving in the 80's. Many ideas >like database filesystems never really got a chance to show their utility. isn't the next windows operating system (longhorn) supposed to have a new filesystem that's based on SQL Server? i