1. 09 Jul, 1999 2 commits
  2. 08 Jul, 1999 1 commit
    • Bruce Momjian's avatar
      pg_atoi() does range check on int4 data only if · 5035d7b9
      Bruce Momjian authored
      "HAS_LONG_LONG" is defined based on the assumption that
      strtol() would return ERANGE if a platform does not support
      64-bit integers. In current PostgreSQL 6.5 (and 6.4.2)
      distribution, "HAS_LONG_LONG" is defined only if platform
      is "alpha". (See include/port/alpha.h) I think the int4
      range check should apply to linux_alpha as well. (I have
      not tested yet but I guess this might be applicable to
      newer Linux/i386 distributions which includes new GCC which
      implements long int as 64-bit int.)
      5035d7b9
  3. 25 May, 1999 1 commit
  4. 13 Feb, 1999 1 commit
  5. 02 Oct, 1998 1 commit
  6. 12 Sep, 1998 1 commit
    • Bruce Momjian's avatar
      The pg_atoi() function uses strtol() to convert the string to numbers. Some · 786b1802
      Bruce Momjian authored
      implementations of strtol() treat empty strings ("") as invalid arguments
      while others convert this (erroneously, IHMO) to zero (0).  Assuming that the
      expected behaviour of pg_atoi() is to return 0 if it is passed an empty
      string, I am supplying the following patch to explictly check for an empty
      string in pg_atoi() and return 0 if the string is empty.  The patch will also
      trap a NULL character pointer being passed to pg_atoi() and will use elog() to
      print out an error message if the input char pointer is NULL.
      
      
      Billy G. Allie
      786b1802
  7. 01 Sep, 1998 2 commits
  8. 15 Jun, 1998 1 commit
  9. 26 Feb, 1998 1 commit
  10. 11 Feb, 1998 1 commit
  11. 05 Jan, 1998 2 commits
  12. 20 Dec, 1997 1 commit
  13. 19 Dec, 1997 1 commit
  14. 17 Nov, 1997 1 commit
  15. 18 Sep, 1997 1 commit
  16. 08 Sep, 1997 1 commit
  17. 07 Sep, 1997 1 commit
  18. 19 Aug, 1997 1 commit
  19. 12 Aug, 1997 2 commits
  20. 22 Apr, 1997 1 commit
  21. 13 Apr, 1997 1 commit
  22. 28 Dec, 1996 1 commit
  23. 27 Nov, 1996 1 commit
  24. 06 Nov, 1996 2 commits
  25. 31 Oct, 1996 1 commit
  26. 22 Jul, 1996 1 commit
  27. 16 Jul, 1996 1 commit
  28. 09 Jul, 1996 1 commit