Skip site navigation (1) Skip section navigation (2)

Re: [QUESTIONS] Using % in a query

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: Postgres Hackers List <hackers(at)postgresql(dot)org>
Subject: Re: [QUESTIONS] Using % in a query
Date: 1998-03-27 02:47:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> Gee, I saw I put the file on my postgresql account, but probably 
> forgot to install it.  Sorry.  Would have been nice to get it into 
> 6.3.1 too.

Well, I had mixed feelings about that anyway, since it hadn't been field
tested. I'll apply it along with the type conversion mods I'm working
on. btw, I already have working code for automatic conversions of
function arguments, moving on to operators next. Examples follow...

                        - Tom

-- this input is automatically converted to float8...
postgres=> select dsqrt(2);
(1 row)

-- allow unknown types to convert to text type
-- this addresses the annoying MySQL context-free test cases
postgres=> select 'abc' || 'def';
(1 row)

-- this function is massively overloaded, but we automatically choose
-- the "datetime" type for evaluation...
postgres=> select date_part('year', 'now');
(1 row)

Oh, I stumbled across a declaration problem in dpow() while testing :-/


pgsql-hackers by date

Next:From: Thomas G. LockhartDate: 1998-03-27 03:35:04
Subject: Re: AW: AW: [HACKERS] Re: PostgreSQL reference manual
Previous:From: David GouldDate: 1998-03-27 01:04:34
Subject: Re: AW: AW: [HACKERS] Re: PostgreSQL reference manual

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group