1. 25 10月, 2001 3 次提交
  2. 24 10月, 2001 1 次提交
  3. 23 10月, 2001 1 次提交
  4. 19 10月, 2001 5 次提交
    • B
      > This stops the interface from leaking the row tuples (and thus the · ece1b67f
      Bruce Momjian 提交于
      > results of every fetch).
      
      Stephen Robert Norris
      ece1b67f
    • M
      removed "not fully implemented" warning for nullif · a535cd1f
      Michael Meskes 提交于
      a535cd1f
    • H
      Change SC_fetch() to not retrieve data in case the · 8c3cb43b
      Hiroshi Inoue 提交于
      SQL_RETRIEVE_DATA option is SQL_RD_OFF. This would
      avoid a crash when scrolling Grid controls.
      8c3cb43b
    • B
      Document all the ecpg error codes. · 278669e0
      Bruce Momjian 提交于
      278669e0
    • T
      Accept an INTERVAL argument for SET TIME ZONE per SQL99. · 9310075a
      Thomas G. Lockhart 提交于
       Modified the parser and the SET handlers to use full Node structures
       rather than simply a character string argument.
      Implement INTERVAL() YEAR TO MONTH (etc) syntax per SQL99.
       Does not yet accept the goofy string format that goes along with, but
       this should be fairly straight forward to fix now as a bug or later
       as a feature.
      Implement precision for the INTERVAL() type.
       Use the typmod mechanism for both of INTERVAL features.
      Fix the INTERVAL syntax in the parser:
       opt_interval was in the wrong place.
      INTERVAL is now a reserved word, otherwise we get reduce/reduce errors.
      Implement an explicit date_part() function for TIMETZ.
       Should fix coersion problem with INTERVAL reported by Peter E.
      Fix up some error messages for date/time types.
       Use all caps for type names within message.
      Fix recently introduced side-effect bug disabling 'epoch' as a recognized
       field for date_part() etc. Reported by Peter E. (??)
      Bump catalog version number.
      Rename "microseconds" current transaction time field
       from ...Msec to ...Usec. Duh!
      date/time regression tests updated for reference platform, but a few
       changes will be necessary for others.
      9310075a
  5. 18 10月, 2001 1 次提交
  6. 17 10月, 2001 2 次提交
  7. 16 10月, 2001 3 次提交
    • B
      Python handle as string all int8 values from postgresql. This could be · 076026bb
      Bruce Momjian 提交于
      view when using the aggregate function count() and function nextval
      that returns an int8 value, but in python is represented like string:
      
      >> db.query("select nextval('my_seq')").getresult()
      [('2',)]
      
      >> db.query("select count(*) from films").dictresult()
      [{'count': '120'}]
      
      
      
      Ricardo Caesar Lenzi
      076026bb
    • T
      Doesn't anyone test stuff before they commit it? · e158670c
      Tom Lane 提交于
      e158670c
    • B
      > Uh, isn't the correct fix · 394925b6
      Bruce Momjian 提交于
       > ! $$ = cat_str(8, make_str("grant"), $2, make_str("on"), $4, $5,
       > make_str("to"), $7, $8);
       > ISTM your patch loses the opt_with_grant clause.  (Of course the
       > backend doesn't currently accept that clause anyway, but that's no
       > reason for ecpg to drop it.)
      
      My patch doesn't loose the option, it's never been passed on anyway:
      
       opt_with_grant:  WITH GRANT OPTION
                                      {
                                              mmerror(ET_ERROR, "WITH GRANT OPTION is not supported.  Only relation owners can
       set privileges");
                                       }
                      | /*EMPTY*/
                      ;
      
      The existing code in ecpg/preproc/preproc.y to handle the WITH option
      simply throws an error and aborts the processing... The patch below
      prevents the segfault and also passes on the WITH option to the
      backend, probably a better fix.
      
      Lee Kindness
      394925b6
  8. 15 10月, 2001 1 次提交
  9. 14 10月, 2001 2 次提交
  10. 12 10月, 2001 2 次提交
  11. 10 10月, 2001 2 次提交
    • P
      Allow optional () after current_user, session_user, user, current_time, · ec5c6287
      Peter Eisentraut 提交于
      current_timestamp, current_date for ODBC compatibility.
      
      Add more functions to odbc.sql catalog extension, use new CREATE OR
      REPLACE FUNCTION.
      
      Document iODBC/unixODBC build options.
      ec5c6287
    • B
      This patch fixes a bug introduced in the jdbc bytea support patch. · 839b9bc0
      Barry Lind 提交于
      That patch broke the ability to read data from binary cursors.
      --Barry Lind
       Modified Files:
       	pgsql/src/interfaces/jdbc/org/postgresql/Connection.java
       	pgsql/src/interfaces/jdbc/org/postgresql/ResultSet.java
       	pgsql/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
       	pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java
       	pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java
       	pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java
       	pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
       	pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
      839b9bc0
  12. 08 10月, 2001 1 次提交
  13. 06 10月, 2001 2 次提交
  14. 05 10月, 2001 1 次提交
  15. 04 10月, 2001 4 次提交
    • B
      Attached is a patch which deals with · 60553337
      Bruce Momjian 提交于
      select 'id' as xxx from table
      
      The issue is:
      
      When the driver gets a data type which does not map into the SQL.Types
      it attempts to load the object into a java object. Eventually throwing
      an exception indicating that the type "unknown" was not found.
      
      Since the backend defaults "unknown" types to text it was suggested that
      the jdbc driver do the same.
      
      This patch does just that.
      
      I have tested it on the above select statement as well as a small
      program that serializes, and deserializes a class
      
      Dave Cramer
      60553337
    • B
      I've just finished the Chinese NLS support(zh_CN part) files · a6020b39
      Bruce Momjian 提交于
      translation,
          the attachement is those four files.
         (.tar.gz file, with the directory, root is $PGSRC).
          Tested on some Linux platform.
      
      Weiping He
      a6020b39
    • T
      Consistently use gcc's __attribute__((format)) to check sprintf-style · fcd2e372
      Tom Lane 提交于
      format strings wherever possible.  Remarkably, this exercise didn't
      turn up any inconsistencies, but it seems a good idea for the future.
      fcd2e372
    • T
      DROP AGGREGATE and COMMENT ON AGGREGATE now accept the expected syntax · 2e5fda7b
      Tom Lane 提交于
      'aggname (aggtype)'.  The old syntax 'aggname aggtype' is still accepted
      for backwards compatibility.  Fix pg_dump, which was actually broken for
      most cases of user-defined aggregates.  Clean up error messages associated
      with these commands.
      2e5fda7b
  16. 03 10月, 2001 1 次提交
  17. 02 10月, 2001 1 次提交
  18. 01 10月, 2001 4 次提交
  19. 30 9月, 2001 1 次提交
  20. 29 9月, 2001 2 次提交
    • B
      850ba416
    • B
      Per the recent discussion there's been some code changes in JDBC's · 07ce9fe6
      Bruce Momjian 提交于
      DatabaseMetaData.getColumn(). I proposed a patch that would change the
      number of queries to find out all columns in a table from 2 * N + 1 to 1 (N
      being the number of columns reported) by using some outer joins. I also
      fixed the fact that getColumns() only returned columns that had a default
      defined. OTOH, I did not use to change the code required for obtaining a
      column's remarks (by using col_description() for 7.2  and requested by Tom
      Lane).
      
      Finally, I have found a way to get all the column details in a single query
      *and* use col_description() for 7.2 servers. A patch is attached. It
      overrules Ren? Pijlman's fix for this that was committed just today, but
      still used N + 1 queries (sorry Ren? ;-) )
      
      I also fixed the return values for TABLE_CAT and TABLE_SCHEM from "" to
      null, to be more standard compliant (and requested in Ren?'s mail found at
      http://fts.postgresql.org/db/mw/msg.html?mid=1034253).
      
      As always, the JDBC1 version has not been tested as I have no JDK 1.1
      
      Jeroen van Vianen
      07ce9fe6