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

Default fields should get QSqlField::autoValue set

XMLWordPrintable

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

      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);
      }
      }

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes