1. 24 Feb, 2000 3 commits
    • Tom Lane's avatar
      Add numeric <-> int8 and numeric <-> int2 conversion functions, as well · 9110b33f
      Tom Lane authored
      as a unary minus operator for numeric.  Now that long numeric constants
      will get converted to NUMERIC in early parsing, it's essential to have
      numeric->int8 conversion to avoid 'can't convert' errors on undecorated
      int8 constants.  Threw in the rest for completeness while I was in the
      area.
      I did not force an initdb for this, since the system will still run
      without the new pg_proc/pg_operator entries.  Possibly I should've.
      9110b33f
    • Tom Lane's avatar
      Make make_const() check the size and precision of a T_Float Value, · 512669db
      Tom Lane authored
      and produce either FLOAT8 or NUMERIC output depending on whether the
      value fits in a float8 or not.  This is almost back to the way the
      code was before I changed T_Float, but there is a critical difference:
      now, when a numeric constant doesn't fit in float8, it will be treated
      as type NUMERIC instead of type UNKNOWN.
      512669db
    • Tom Lane's avatar
      399a570f
  2. 23 Feb, 2000 3 commits
    • Bruce Momjian's avatar
      Fix plpsql for bsdi. · f40c5062
      Bruce Momjian authored
      f40c5062
    • Michael Meskes's avatar
      *** empty log message *** · 9f74608f
      Michael Meskes authored
      9f74608f
    • Bruce Momjian's avatar
      1. miscadmin.h needs to include sys/types.h for a definition of pid_t · c969e266
      Bruce Momjian authored
      2. Regression tests fail for types int2 and int4 (which can easily be
      fixed by adding entries to resultmap) aswell as float8 and geometry,
      where floating point numbers appear to be rounded a little differently
      than in your expected results (besides that I also need the positive
      zeros file). I'm including a patch for the first 2, but I don't know
      whether the latter two are actually a bug in postgres or a bug in the
      OS or even allowed difference. I'm including my results for reference.
      
      Rolf Grossmann
      c969e266
  3. 22 Feb, 2000 7 commits
  4. 21 Feb, 2000 15 commits
  5. 20 Feb, 2000 10 commits
  6. 19 Feb, 2000 2 commits
    • Tom Lane's avatar
      Repair longstanding violation of SQL92 semantics: GROUP BY would · 751a14e6
      Tom Lane authored
      interpret a column name as an output column alias (targetlist AS name),
      ather than a real column name as it ought to.  According to the spec,
      only ORDER BY should look at output column names.  I left in GROUP BY's
      willingness to use an output column number ('GROUP BY 2'), even though
      this is also contrary to the spec --- again, only ORDER BY is supposed
      to accept that.  But there is no possible reason to want to GROUP BY
      an integer constant, so keeping this old behavior won't break any
      SQL-compliant queries.  DISTINCT ON will behave the same as GROUP BY.
      
      Change numerology regress test, which depended on the incorrect
      behavior.
      751a14e6
    • Tom Lane's avatar
      Apply Keith Park's updates for expected/horology-solaris-1947.out. Fix · b48f983e
      Tom Lane authored
      erroneous expected output for RESET DateStyle: should be ISO now.
      Fix run_check.sh so that test postmaster is started with PGDATESTYLE=ISO,
      else the horology test won't pass.
      b48f983e