Tom Lane
1b81fd7793
coerce_type() failed to guard against trying to convert a NULL
...
constant to a different type. Not sure that this could happen in ordinary
parser usage, but it can in some new code I'm working on...
1999-08-24 00:09:56 +00:00
Tom Lane
fd19a350ea
Revise parse_coerce() to handle coercion of int and float
...
constants, not only string constants, at parse time. Get rid of
parser_typecast2(), which is bogus and redundant...
1999-08-05 02:33:54 +00:00
Bruce Momjian
3406901a29
Move some system includes into c.h, and remove duplicates.
1999-07-17 20:18:55 +00:00
Bruce Momjian
a71802e12e
Final cleanup.
1999-07-16 05:00:38 +00:00
Bruce Momjian
2e6b1e63a3
Remove unused #includes in *.c files.
1999-07-15 22:40:16 +00:00
Tom Lane
5f74d499bf
Defend against function calls with more than 8 arguments (code
...
used to overrun its fixed-size arrays before detecting error; not cool).
Also, replace uses of magic constant '8' with 'MAXFARGS'.
1999-06-17 22:21:41 +00:00
Tom Lane
1bdd7c68c0
Avoid redundant SysCache searches in coerce_type, for another
...
few percent speedup in INSERT...
1999-05-29 03:17:20 +00:00
Bruce Momjian
07842084fe
pgindent run over code.
1999-05-25 16:15:34 +00:00
Bruce Momjian
a8d2820e6d
Fix for DEFAULT ''.
1999-05-22 04:12:29 +00:00
Bruce Momjian
9710995fc9
Make postgres prompt backend>, and remove PARSEDEBUG.
1999-05-22 02:55:58 +00:00
Bruce Momjian
0a8fb5a8f9
Upgrade to PyGreSQL (2.4)
1999-05-19 16:46:12 +00:00
Bruce Momjian
4853495e03
Change error messages to oids come out as %u and not %d. Change has no
...
real affect now.
1999-05-10 00:46:32 +00:00
Marc G. Fournier
8c3e8a8a0e
From: Tatsuo Ishii <t-ishii@sra.co.jp>
...
Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef
NOT_USED" for current. I have tested these patches in that the
postgres binaries are identical.
1999-02-21 03:49:55 +00:00
Thomas G. Lockhart
bedd04a551
Implement CASE expression.
1998-12-04 15:34:49 +00:00
Bruce Momjian
ca2995be7b
Remove duplicate CIDR funcs by using coerce entries.
1998-10-22 13:51:07 +00:00
Bruce Momjian
173c555948
Make functions static or ifdef NOT_USED. Prevent pg_version creation.
1998-10-08 18:30:52 +00:00
Bruce Momjian
33572dd7ed
Fix for constbyval .
1998-10-01 22:45:32 +00:00
Bruce Momjian
fa1a8d6a97
OK, folks, here is the pgindent output.
1998-09-01 04:40:42 +00:00
Bruce Momjian
af74855a60
Renaming cleanup, no pgindent yet.
1998-09-01 03:29:17 +00:00
Thomas G. Lockhart
94f42ed389
Include OID as a built-in type.
1998-08-14 16:07:00 +00:00
Thomas G. Lockhart
92ed9294de
Allow floating point constants for "def_arg" numeric arguments.
...
Used in the generic "CREATE xxx" parsing.
Do some automatic type conversion for inserts from other columns.
Previous trouble with "resjunk" regression test remains for now.
1998-07-08 14:04:11 +00:00
Thomas G. Lockhart
8536c96261
Do type conversion to match columns in UNION clauses.
...
Currently force the type to match the _first_ select in the union.
Move oper_select_candidate() from parse_func.c to parse_oper.c.
Throw error inside of oper_inexact() if no match for binary operators.
Check more carefully that types can be coerced
even if there is only one candidate operator in oper_inexact().
Fix up error messages for more uniform look.
Remove unused code.
Fix up comments.
1998-05-29 14:00:24 +00:00
Thomas G. Lockhart
3ace5fd082
Add capabilities for automatic type conversion.
1998-05-09 23:31:34 +00:00