| 814 | } |
| 815 | |
| 816 | bool CppSQLite3DB::columnExists(const CString& strTable, const CString& strColumn) |
| 817 | { |
| 818 | try |
| 819 | { |
| 820 | CString strSQL = WizFormatString1("select * from %1 limit 0, 1", strTable); |
| 821 | CppSQLite3Query query = execQuery(strSQL); |
| 822 | return query.fieldIndex(strColumn) != -1; |
| 823 | } |
| 824 | catch (const CppSQLite3Exception& ) |
| 825 | { |
| 826 | return false; |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | int CppSQLite3DB::execDML(const CString& strSQL) |
| 831 | { |
no test coverage detected