Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-18186

Default fields should get QSqlField::autoValue set

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • P3: Somewhat important
    • Some future release
    • 4.7.2
    • SQL Support
    • None

    Description

      Default value is set, but setAutoValue isn't executed.
      My path:
      — a/qsql_psql.cpp
      +++ b/qsql_psql.cpp
      @@ -1159,6 +1159,7 @@ QSqlRecord QPSQLDriver::record(const QString& tablename) const
      f.setPrecision(precision);
      f.setDefaultValue(defVal);
      f.setSqlType(query.value(1).toInt());
      + f.setAutoValue( ! defVal.isEmpty() );
      info.append(f);
      }
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mabrand Mark Brand
            zygmunt Zygmunt Ptak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes