Fixed bug at18615 (Lazarus Long)

This commit is contained in:
David Anderson 2005-09-11 07:13:44 +00:00
parent e3afe22a48
commit eeb77395cd

View File

@ -158,6 +158,8 @@ int SQLResult::Query(SQL *cn, const char *query)
return 1;
}
else {
if (!m_rowCount)
return -1;
m_hasData = true;
this->m_fieldNames = new String[m_columnCount];
for (unsigned int i = 0; i < m_columnCount; i++)