File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,17 +64,14 @@ void Constraint::removeFromColumnList(const std::string& key)
6464
6565bool ForeignKeyClause::isSet () const
6666{
67- return m_override. size () || m_table.size ();
67+ return m_table.size ();
6868}
6969
7070std::string ForeignKeyClause::toString () const
7171{
7272 if (!isSet ())
7373 return std::string ();
7474
75- if (m_override.size ())
76- return m_override;
77-
7875 std::string result = escapeIdentifier (m_table);
7976
8077 if (m_columns.size ())
@@ -86,11 +83,6 @@ std::string ForeignKeyClause::toString() const
8683 return result;
8784}
8885
89- void ForeignKeyClause::setFromString (const std::string& fk)
90- {
91- m_override = fk;
92- }
93-
9486std::string ForeignKeyClause::toSql () const
9587{
9688 std::string result;
Original file line number Diff line number Diff line change @@ -158,9 +158,8 @@ class ForeignKeyClause : public Constraint
158158
159159 bool isSet () const ;
160160 std::string toString () const ;
161- void setFromString (const std::string& fk);
162161
163- void setTable (const std::string& table) { m_override. clear (); m_table = table; }
162+ void setTable (const std::string& table) { m_table = table; }
164163 const std::string& table () const { return m_table; }
165164
166165 void setColumns (const StringVector& columns) { m_columns = columns; }
@@ -177,8 +176,6 @@ class ForeignKeyClause : public Constraint
177176 std::string m_table;
178177 StringVector m_columns;
179178 std::string m_constraint;
180-
181- std::string m_override;
182179};
183180
184181class UniqueConstraint : public Constraint
You can’t perform that action at this time.
0 commit comments