summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqlfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/kernel/qsqlfield.cpp')
-rw-r--r--src/sql/kernel/qsqlfield.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/sql/kernel/qsqlfield.cpp b/src/sql/kernel/qsqlfield.cpp
index 46a5135..80f193f 100644
--- a/src/sql/kernel/qsqlfield.cpp
+++ b/src/sql/kernel/qsqlfield.cpp
@@ -159,11 +159,20 @@ public:
\sa setRequiredStatus() setLength() setPrecision() setDefaultValue() setGenerated() setReadOnly()
*/
+QSqlField::QSqlField()
+{
+ d = new QSqlFieldPrivate(QString(), QVariant::Invalid);
+}
+
+QSqlField::QSqlField(const QString& fieldName)
+{
+ d = new QSqlFieldPrivate(fieldName, QVariant::Invalid);
+}
+
QSqlField::QSqlField(const QString& fieldName, QVariant::Type type)
{
d = new QSqlFieldPrivate(fieldName, type);
}
-
/*!
Constructs a copy of \a other.
*/