Changeset View
Changeset View
Standalone View
Standalone View
src/KDbResult.shared.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 37 | public: | |||
---|---|---|---|---|---|
107 | void prependMessage(const QString& message); | 107 | void prependMessage(const QString& message); | ||
108 | 108 | | |||
109 | //! Efficient clearing of the sql attribute, equivalent of setSql(QString()). | 109 | //! Efficient clearing of the sql attribute, equivalent of setSql(QString()). | ||
110 | inline void clearSql() { | 110 | inline void clearSql() { | ||
111 | d->sql.clear(); | 111 | d->sql.clear(); | ||
112 | } | 112 | } | ||
113 | 113 | | |||
114 | /*! @return sql string of actually executed SQL statement, | 114 | /*! @return sql string of actually executed SQL statement, | ||
115 | usually using drv_executeSQL(). If there was error during executing SQL statement, | 115 | usually using drv_executeSql(). If there was error during executing SQL statement, | ||
116 | before, that string is returned instead. */ | 116 | before, that string is returned instead. */ | ||
117 | virtual inline KDbEscapedString recentSQLString() const { | 117 | virtual inline KDbEscapedString recentSqlString() const { | ||
118 | return d->errorSql; | 118 | return d->errorSql; | ||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | protected: | 121 | protected: | ||
122 | void init(int code, const QString& message); | 122 | void init(int code, const QString& message); | ||
123 | #if 0 | 123 | #if 0 | ||
124 | /*! Interactively asks a question. Console or GUI can be used for this, | 124 | /*! Interactively asks a question. Console or GUI can be used for this, | ||
125 | depending on installed message handler. For GUI version, message boxes are used. | 125 | depending on installed message handler. For GUI version, message boxes are used. | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |