1. 21 Dec, 1999 6 commits
    • Bruce Momjian's avatar
      The first fix is to allow an input file with a relative path and without · b57b0e04
      Bruce Momjian authored
      a ".pgc " extension. The second patch fixes a coredump when there is
      more than one input file (in that case, cur and types were not set to
      NULL before processing the second f ile)
      
      The patch below modifies the accepted grammar of ecpg to accept
      
       FETCH [direction] [amount] cursor name
      
      i.e. the IN|FROM clause becomes optional (as in Oracle and Informix).
      This removes the incompatibility mentioned in section "Porting From
      Other RDBMS Packages" p169, PostgreSQL Programmer's Guide. The grammar
      is modified in such a way as to avoid shift/reduce conflicts. It does
      not accept the statement "EXEC SQL FETCH;" anymore, as the old grammar
      did (this seems to be a bug of the old grammar anyway).
      
      This patch cleans up the handling of space characters in the scanner;
      some patte rns require \n to be in {space}, some do not. A second fix is
      the handling of cpp continuati on lines; the old pattern did not match
      these. The parser is patched to fix an off-by-one error in the #line
      directives. The pa rser is also enhanced to report the correct location
      of errors in declarations in the "E XEC SQL DECLARE SECTION". Finally,
      some right recursions in the parser were replaced by  left-recursions.
      
      
      This patch adds preprocessor directives to ecpg; in particular
      
      EXEC SQL IFDEF, EXEC SQL IFNDEF, EXEC SQL ELSE, EXEC SQL ELIF and EXEC SQL ENDIF
      
      "EXEC SQL IFDEF" is used with defines made with "EXEC SQL DEFINE" and
      defines, specified on the command line with -D. Defines, specified on
      the command line are persistent across multiple input files. Defines can
      be nested up to a maximum level of 128 (see patch). There is a fair
      amount of error checking to make sure directives are matched properly. I
      need preprocessor directives for porting code, that is written for an
      Informix database, to a PostgreSQL database, while maintaining
      compatibility with the original code. I decided not to extend the
      already large ecpg grammar. Everything is done in the scanner by adding
      some states, e.g. to skip all input except newlines and directives. The
      preprocessor commands are compatible with Informix. Oracle uses a cpp
      replacement.
      
      Rene Hogendoorn
      b57b0e04
    • Bruce Momjian's avatar
      Update developers faq in main tree. · a0fa26be
      Bruce Momjian authored
      a0fa26be
    • Bruce Momjian's avatar
      This patch will avoid SIGFPE on some geo functions , if PostgreSQL is compiled · bb50fb51
      Bruce Momjian authored
      with DEC C.
      
      DEC C doesn't handle double values greater than DBL_MAX, but some
      PostgreSQL geo functions assign greater than DBL_MAX values to some vars
      in some special cases - that couses SIGFPE. I dunno if that is the only place
      to fix to work well with DEC C.
      
      Kirill Nosov.
      bb50fb51
    • Bruce Momjian's avatar
      autoconf · 04c78e2e
      Bruce Momjian authored
      04c78e2e
    • Bruce Momjian's avatar
      Clean up qnx template finding. · 6a554a07
      Bruce Momjian authored
      6a554a07
    • Jan Wieck's avatar
      Added empty TOASTER files and corrected some minor glitches · e2aef496
      Jan Wieck authored
      in regression tests.
      
      Jan
      e2aef496
  2. 20 Dec, 1999 10 commits
  3. 18 Dec, 1999 9 commits
  4. 17 Dec, 1999 11 commits
  5. 16 Dec, 1999 4 commits
    • Bruce Momjian's avatar
      Clear paren level flag on \r or any backslash command, rather than · 1b22a8cb
      Bruce Momjian authored
      keeping parenlevel unchanged.
      1b22a8cb
    • Jan Wieck's avatar
      Some changes to prepare for LONG attributes. · 397e9b32
      Jan Wieck authored
      Jan
      397e9b32
    • Bruce Momjian's avatar
      Hi, · 5ca971a1
      Bruce Momjian authored
      I sending promised patch with:
      
              * getopt_long() - for pg_dump (portable)
      
              * and "Usage: " changes in scripts in src/bin/
                - this changes are cosmetic only, not change any
                feature ...etc.
      
       All PostgreSQL routines (scripts) support now long options and
      help's output is alike for all scripts and all support -? or --help.
      
                                                      Karel
      
      Karel Zak <zakkr@zf.jcu.cz>              http://home.zf.jcu.cz/~zakkr/
      5ca971a1
    • Bruce Momjian's avatar
      >Turning nextval and currval into keywords is not an acceptable way to · cf374feb
      Bruce Momjian authored
      >go about this.  That will risk breaking existing applications that use
      >those names as column names.
      >
      >It should actually almost work to write sq.nextval as things stand,
      >because Postgres has for a long time considered table.function and
      >function(table) to be interchangeable notations for certain kinds of
      >functions.  nextval doesn't seem to be one of that kind of function,
      >at the moment.  I'd suggest leaving the grammar as it was, and taking a
      >look at ParseFuncOrColumn in parse_func.c to see if you can't persuade
      >it to accept the sequence functions in that style.
      
      OK, good point. I tried to implement it somewhere else and ended up
      extending transformAttr. Attached you'll find the patch.
      
      Jeroen van Vianen
      cf374feb