1. 27 1月, 2001 17 次提交
  2. 26 1月, 2001 4 次提交
  3. 25 1月, 2001 19 次提交
    • P
      Added an alternative constructor to PGSQLException so that debugging · f118c36a
      Peter Mount 提交于
                some more osteric bugs is easier. If only 1 arg is supplied and it's
                of type Exception, then that Exception's stacktrace is now included.
      
      This was done as there's been a report of an unusual bug during connection.
      This will make this sort of bug hunting easier from now on.
      f118c36a
    • B
      Add to TODO.detail. · 97f447b2
      Bruce Momjian 提交于
      97f447b2
    • B
      Update TODO list. · 8293e219
      Bruce Momjian 提交于
      8293e219
    • B
      Update TODO list. · cb8fd608
      Bruce Momjian 提交于
      cb8fd608
    • T
      Whoops, forgot to do ProcLockWakeup() after deadlock checker · 211f5afd
      Tom Lane 提交于
      rearranges wait queues.
      211f5afd
    • B
      Add. · 8cb2c013
      Bruce Momjian 提交于
      8cb2c013
    • T
      Re-implement deadlock detection and resolution, per design notes posted · a05eae02
      Tom Lane 提交于
      to pghackers on 18-Jan-01.
      a05eae02
    • B
      Further to the previous ODBC patches I posted today, I found a couple of · 40203e4f
      Bruce Momjian 提交于
      problems with char array sizes having set a couple of constants to 0 for
      unlimited query length and row length. This additional patch cleans those
      problems up by defining a new constant (STD_STATEMENT_LEN) to 65536 and
      using that in place of MAX_STATEMENT_LEN.
      
      Another constant (MAX_MESSAGE_LEN) was defined as 2*BLCKSZ, but is now
      65536. This is used to define the length of the message buffer in a number
      of places and as I understand it (probably not that well!) therefore also
      places a limit on the query length. Fixing this properly is beyond my
      capabilities but 65536 should hopefully be large enough for most people.
      
      Apologies for being over-enthusiastic and posting 3 patches in one day
      rather than 1 better tested one!
      
      Regards,
      
      Dave Page
      40203e4f
    • B
      > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] · 0e968ee7
      Bruce Momjian 提交于
      > Sent: 24 January 2001 16:51
      > To: Dave Page
      > Subject: Re: [PATCHES] ODBC Patch for OJs/Large Querys & Rows
      >
      >
      > > SQL_OJ_LEFT = Left outer joins are supported.
      >
      > Yes.
      <snip>
      
      In addition to my earlier patch, this one adds support for SQLGetInfo
      SQL_OJ_CAPABILITIES to the ODBC driver.
      
      Dave Page
      0e968ee7
    • B
      I decided to give this a go after all :-) The attached patch does the · be127684
      Bruce Momjian 提交于
      following but it does *not* check whether the user is connected to
      PostgreSQL 7.0.x or 7.1 first (as would be required for some of the
      features) - the driver doesn't do this at all afaik and it's beyond my
      capabilities to implement such checking in code that doesn't look like it
      was written by my 1 year old daughter!
      
      1) The driver now reports no maximum query length (SQL_MAX_QUERY_SIZE).
      2) The driver now reports no maximum row length (SQL_MAX_ROW_SIZE).
      3) The driver now reports that Outer Joins are supported (SQL_OUTER_JOINS),
      but still does not report oj capabilities (SQL_OJ_CAPABILITIES).
      4) The version number has been incremented to 7.1.0000 in psqlodbc.h *and*
      psqlodbc.rc
      
      
      Regards,
      
      Dave Page
      be127684
    • B
      This patch fixes an arrayindexoutofbounds exception that was just · 4e45005f
      Bruce Momjian 提交于
      introduced into the code.  The fix is a fix to
      org.postgresql.core.ByteArrayDim1.java.
      
      Barry Lind
      4e45005f
    • B
      ba6fda51
    • B
      Add to inheritance · 78a6da6d
      Bruce Momjian 提交于
      78a6da6d
    • B
      Update TODO list. · 9aab097d
      Bruce Momjian 提交于
      9aab097d
    • B
      Attached is a revised patch that removes the static SimpleDateFormat · 26e56644
      Bruce Momjian 提交于
      objects that Thomas pointed out might be a problem.
      
      PPS.  I have included and updated the comments from the original patch
      request to reflect the changes made in this revised patch.
      
      > Attached is a set of patches for a couple of bugs dealing with
      > timestamps in JDBC.
      >
      > Bug#1) Incorrect timestamp stored in DB if client timezone different
      > than DB.
      > The buggy implementation of setTimestamp() in PreparedStatement simply
      > used the toString() method of the java.sql.Timestamp object to convert
      > to a string to send to the database.  The format of this is yyyy-MM-dd
      > hh:mm:ss.SSS which doesn't include any timezone information.  Therefore
      > the DB assumes its timezone since none is specified.  That is OK if the
      > timezone of the client and server are the same, however if they are
      > different the wrong timestamp is received by the server.  For example if
      > the client is running in timezone GMT and wants to send the timestamp
      > for noon to a server running in PST (GMT-8 hours), then the server will
      > receive 2000-01-12 12:00:00.0 and interprete it as 2000-01-12
      > 12:00:00-08 which is 2000-01-12 04:00:00 in GMT.  The fix is to send a
      > format to the server that includes the timezone offset.  For simplicity
      > sake the fix uses a SimpleDateFormat object with its timezone set to GMT
      > so that '+00' can be used as the timezone for postgresql.  This is done
      > as SimpleDateFormat doesn't support formating timezones in the way
      > postgresql expects.
      >
      > Bug#2) Incorrect handling of partial seconds in getting timestamps from
      > the DB
      >
      > When the SimpleDateFormat object parses a string with a format like
      > yyyy-MM-dd hh:mm:ss.SS it expects the fractional seconds to be three
      > decimal places (time precision in java is miliseconds = three decimal
      > places).  This seems like a bug in java to me, but it is unlikely to be
      > fixed anytime soon, so the postgresql code needed modification to
      > support the java behaviour.  So for example a string of '2000-01-12
      > 12:00:00.12-08' coming from the database was being converted to a
      > timestamp object with a value of 2000-01-12 12:00:00.012GMT-08:00.  The
      > fix was to check for a '.' in the string and if one is found append on
      > an extra zero to the fractional seconds part.
      >
      >
      > I also did some cleanup in ResultSet.getTimestamp().  This method has
      > had multiple patches applied some of which resulted in code that was no
      > longer needed.  For example the ISO timestamp format that postgresql
      > uses specifies the timezone as an offset like '-08'.  Code was added at
      > one point to convert the postgresql format to the java one which is
      > GMT-08:00, however the old code was left around which did nothing.  So
      > there was code that looked for yyyy-MM-dd hh:mm:sszzzzzzzzz and
      > yyyy-MM-dd hh:mm:sszzz.  This second format would never be encountered
      > because zzz (i.e. -08) would be converted into the former (also note
      > that the SimpleDateFormat object treats zzzzzzzzz and zzz the same, the
      > number of z's does not matter).
      >
      >
      > There was another problem/fix mentioned on the email lists today by
      > mcannon@internet.com which is also fixed by this patch:
      >
      > Bug#3) Fractional seconds lost when getting timestamp from the DB
      > A patch by Jan Thomea handled the case of yyyy-MM-dd hh:mm:sszzzzzzzzz
      > but not the fractional seconds version yyyy-MM-dd hh:mm:ss.SSzzzzzzzzz.
      > The code is fixed to handle this case as well.
      
      Barry Lind
      26e56644
    • P
      7b9dc714
    • P
    • B
    • B
      Update TODO list. · ae22682f
      Bruce Momjian 提交于
      ae22682f