Re: [GENERAL] textpos() function

2000-05-10 Thread Hitesh Patel
or near "," Trying to run a query like, 'select position(email, ',') from table' fails with the same parse error, however 'select strpos(email, ',') from table' runs fine... any hints? -- |-|-

[GENERAL] textpos() function

2000-05-09 Thread Hitesh Patel
else (i found strpos() but i'm not sure if that does exactly the same thing). -- |-|----| | Hitesh Patel| Voice: (541) 759-3126 | | | Fax: (541) 759-3214 | | Pref

[GENERAL] Need help creating a function

2000-02-03 Thread Hitesh Patel
Does anyone have a function laying around that convert a 'money' type to a float8 and return it?

Re: [GENERAL] weird sum() results

2000-01-20 Thread Hitesh Patel
CA'; returns ERROR: No such function 'float8' with the specified attributes And again i'm stuck :-) Thanks in advance for any help. -- |-----|--------| | Hitesh Patel| Voice: (541) 759-

[GENERAL] weird sum() results

2000-01-19 Thread Hitesh Patel
I have a table with a filed named 'amount' and all the values are positive values, but if i do this: select sum(amount) from table where state = 'CA'; I get a negative number. Doing a select name, amount from table where state = 'CA' and amount < '0'; Returns 0 rows.

Re: [GENERAL] logging/Accounting from Radiusd ?

1999-09-16 Thread Hitesh Patel
ing going to postgres. I believe the patch there is sufficient, i have made a lot of custom tweaks and maybe after cleaning things up will release it to the tigers :-) http://www.miquels.cistron.nl/radius/ -- |-----|| | Hitesh Patel

[GENERAL] max() question

1999-09-14 Thread Hitesh Patel
I have a table with and email address and a datetime timestamp. What would be the easiest way to select the 3 earliest timestamps (earliest being furthest in the past from the current date)