1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00
Commit Graph

12521 Commits

Author SHA1 Message Date
4f63a0e101 Attached is a patch that fixes ResultSetMetaData.isNullable() in
the JDBC driver.

This method is currently unimplemented and always returns
ResultSetMetaData.columnNullable. This is obviously incorrect
when a column is defined with NOT NULL or PRIMARY KEY. And we
have to think of check constraints, views, functions etc.

The patch simply changes the return value to
ResultSetMetaData.columnNullableUnknown. This is until someone
comes up with a real implementation of course.

On Fri, 14 Sep 2001 17:53:50 +0200, Tomisaw Kity?ski wrote:
>Hello there,
>
>could someone tell me, please, do I have any chance to get
>proper implementation of above method in JDBC (1.1+) soon?
>
>Current "return 1" works fine on most tables, however it seems
>to be a little bit incorrect with some of them ;)

Ren? Pijlman
2001-09-17 15:56:11 +00:00
6e63468f3a I'm attaching a patch which fixes the corruption in strings caused
by escape processing in the SQL statement. I've tested this for a
while now and it appears to work well. Previously string data
with {d was getting corrupt as the {d was being stripped regardless
of whether it was an escape code or not.

I also added checking for time and timestamp escape processing strings
as per 11.3 in the specification. The patch is against the latest
CVS.

Thomas O'Dowd
2001-09-17 15:54:50 +00:00
c6cb8701db Change vacuumlo to take 'lo' type into account. 2001-09-17 02:30:54 +00:00
29481e170f Change FixupBlobXrefs() to take 'lo' type into account. 2001-09-17 02:07:51 +00:00
052c2eaa65 Simplify and clean up FigureColname; make it work without coredumping
for TypeCast case.
2001-09-17 01:06:36 +00:00
ec7ddc1586 Use portable putenv(), not unportable setenv(). 2001-09-17 00:42:42 +00:00
220ae48cca Suppress compiler warning. 2001-09-17 00:29:10 +00:00
2aa6ad1183 Update documentation's info about location of our CVSROOT. 2001-09-16 23:52:29 +00:00
e648b22ddd Russian translation from Serguei Mokhov 2001-09-16 23:10:16 +00:00
d0a6cf2180 Update from Serguei Mokhov 2001-09-16 23:06:33 +00:00
d3215af7ad Update intro in face of TOAST. 2001-09-16 22:53:52 +00:00
264f8f2b6c Install dynamically loadable modules into a private subdirectory
under libdir, for a cleaner separation in the installation layout
and compatibility with binary packaging standards.  Point backend's
default search location there.  The contrib modules are also
installed in the said location, giving them the benefit of the
default search path as well.  No changes in user interface
nevertheless.
2001-09-16 16:11:11 +00:00
d20a50de33 Update highlights. More items to add. 2001-09-16 04:26:22 +00:00
73a4bcc1aa Point to HISTORY File for current info. 2001-09-16 04:18:57 +00:00
f5db0bc968 Add list of 7.2 changes in preparation for beta. 2001-09-16 04:12:35 +00:00
1b506c9661 updates 2001-09-15 19:56:59 +00:00
d694260765 Markup examples as examples. 2001-09-15 16:08:59 +00:00
4284002d35 Markup examples as examples. Fix formatting of examples. 2001-09-15 00:48:59 +00:00
184c4afcd6 Some formatting changes, add CSS stylesheet. Include indexes in
documentation tarball builds.
2001-09-14 20:37:55 +00:00
c1fbf06654 > Here's a revised patch. Changes:
>
> 1. Now outputs '\\' instead of '\134' when using encode(bytea, 'escape')
> Note that I ended up leaving \0 as \000 so that there are no ambiguities
> when decoding something like, for example, \0123.
>
> 2. Fixed bug in byteain which allowed input values which were not valid
> octals (e.g. \789), to be parsed as if they were octals.
>
> Joe
>

Here's rev 2 of the bytea string support patch. Changes:

1. Added missing declaration for MatchBytea function
2. Added PQescapeBytea to fe-exec.c
3. Applies cleanly on cvs tip from this afternoon

I'm hoping that someone can review/approve/apply this before beta starts, so
I guess I'd vote (not that it counts for much) to delay beta a few days :-)

Joe Conway
2001-09-14 17:46:40 +00:00
e8d5b8d290 Allow '1' in jdbc2 boolean test. 2001-09-14 17:40:41 +00:00
2374be8a26 Remove --enable-unicode-conversion
unicode-conversion is always on if --enable-multibyte is specified

	   Tatsuo Ishii
2001-09-14 10:36:52 +00:00
113cf00edf Add semicolon 2001-09-14 10:28:09 +00:00
b4982f9b6d Fix typo. 2001-09-14 10:24:35 +00:00
f9d2749a03 Fix exmaple
Tatsuo Ishii
2001-09-14 09:49:00 +00:00
03df474440 Fix show message
Tatsuo Ishii
2001-09-14 08:47:00 +00:00
e38664aaa2 Add semicolon
Tatsuo Ishii
2001-09-14 08:24:29 +00:00
479cba8367 Example rules do not work.
CREATE RULE bad_rule_combination_1 AS
    ON SELECT TO emp
    DO INSTEAD
        SELECT * FROM toyemp;

CREATE RULE bad_rule_combination_2 AS
    ON SELECT TO toyemp
    DO INSTEAD
        SELECT * FROM emp;

	Tatsuo Ishii
2001-09-14 08:19:55 +00:00
3f45796c7b Add semicolon 2001-09-14 08:05:55 +00:00
147c742aa2 Add semicolon
Tatsuo Ishii
2001-09-14 07:59:31 +00:00
058841301c Change an *if condition*.
Hiroshi Inoue
2001-09-14 06:46:45 +00:00
70b0831387 1) Improve the implementation of *Disallow Premature* for
older versions of servers.
2) Implement SQLProcedures.

Hiroshi Inoue
2001-09-14 06:30:37 +00:00
4f0e6e3345 Update TODO list. 2001-09-14 03:21:42 +00:00
5e14c9397d Fix a coversation error with pre 6.4 versions.
Hiroshi Inoue
2001-09-14 01:50:33 +00:00
5be2182e47 Update TODO list. 2001-09-14 01:23:14 +00:00
2dcdd5fa53 Update TODO list. 2001-09-14 00:41:06 +00:00
436d4aef07 Add missing paren to ODBC compiles. 2001-09-13 22:39:29 +00:00
76273a51a8 Update compatibility information. 2001-09-13 19:40:34 +00:00
861a0d7b5a Update compatibility information. 2001-09-13 19:05:29 +00:00
a6496a2338 Update compatibility information. 2001-09-13 18:17:44 +00:00
698a5d50c5 Didn't want that jdbc patch in there yet. 2001-09-13 17:01:31 +00:00
54549d8dc4 > I found a problem with PQescapeString (I think). Since it escapes
> null bytes to be literally '\0', the following can happen:
> 1. User inputs string value as "<null byte>##" where ## are digits in the
> range of 0 to 7.
> 2. PQescapeString converts this to "\0##"
> 3. Escaped string is used in a context that causes "\0##" to be evaluated as
> an octal escape sequence.

I agree that this is a problem, though it is not possible to do
anything harmful with it.  In addition, it only occurs if there are
any NUL characters in its input, which is very unlikely if you are
using C strings.

The patch below addresses the issue by removing escaping of \0
characters entirely.

> If the goal is to "safely" encode null bytes, and preserve the rest of the
> string as it was entered, I think the null bytes should be escaped as \\000
> (note that if you simply use \000 the same string truncation problem
> occurs).

We can't do that, this would require 4n + 1 bytes of storage for the
result, breaking the interface.

Florian Weimer
2001-09-13 17:00:34 +00:00
351a0c1736 Replace ASCII-quotes with proper markup. 2001-09-13 15:55:24 +00:00
9f990a73c1 1) Not export ODBC 3.0 functions.
2) (Maybe) fix a bug reported by Mika Muntila.
2001-09-13 00:27:11 +00:00
f93449eb34 'chown -R postgres /usr/local/pgsql' is wrong. Need to do some more typing. 2001-09-12 20:57:28 +00:00
aaed778074 Attached patch is correction for 'doc/jdbc.sgml' of PostgreSQL 7.1.3.
Correction content:
  * I revised a mistake of type (copy and paste).
  * I revised multiplicity of description.

Ryouichi Matsuda
2001-09-12 15:55:00 +00:00
0b8a76b24d Followings are proposed fixes to jdbc.sgml(line numbers are for 7.1.3
doc).

Hiroyuki Yatabe
2001-09-12 15:49:10 +00:00
dfdbf6898f max_locks_per_transaction seems to be a more consistent name than
max_locks_per_xact.
2001-09-12 14:06:37 +00:00
dddd95a859 Check both -lrt and -lposix4 for fdatasync, to cover all Solaris versions. 2001-09-12 12:14:41 +00:00
21a7fa8a6f It is not fixed and I doubt that it is working fine in current CVS. The
bugfix is in the attached patch. Please apply it. Thanks.

 Output must be:

test=# SELECT to_char(485, 'RN');
     to_char
-----------------
         CDLXXXV
(1 row)

test=# SELECT to_char(485, 'FMRN');
 to_char
---------
 CDLXXXV
(1 row)

test=# SELECT to_char(1000, 'RN');
     to_char
-----------------
               M
(1 row)


test=# SELECT to_char(7.2, '"Welcome to"9.9 "release! :-)"');
           to_char
-----------------------------
 Welcome to 7.2 release! :-)
(1 row)

Karel Zak
2001-09-12 04:01:57 +00:00