Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-184

bigint binding problems in sqlite3

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.6
    • Component/s: None
    • Security Level: All
    • Labels:
      None
    • Environment:
      CentOS 4, PHP 5.3.8, Doctrine 2.1.4

      Description

      I created a @Column that was type "bigint" and when inserting very large numbers, they were getting capped in SQLite3 at 2147483647.

      I switched Doctrine/DBAL/Types/BigIntType.php, line 46 from:

      return \PDO::PARAM_INT;

      to:

      return \PDO::PARAM_STR;

      and now it is storing the full numbers. I am unsure, however, whether this is the right change or will affect other database layers. Any thoughts?

      Matt

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Matt Wright
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: