Bug 333306 r+a=vladimir Crash with pragma statements that return values

This commit is contained in:
brettw%gmail.com 2006-05-22 19:18:00 +00:00
parent 98ca29135d
commit 50798069cc

View File

@ -139,7 +139,10 @@ mozStorageStatement::Initialize(mozIStorageConnection *aDBConnection, const nsAC
for (unsigned int i = 0; i < mResultColumnCount; i++) {
const void *name = sqlite3_column_name16 (mDBStatement, i);
mColumnNames.AppendString(nsDependentString(NS_STATIC_CAST(const PRUnichar*, name)));
if (name != nsnull)
mColumnNames.AppendString(nsDependentString(NS_STATIC_CAST(const PRUnichar*, name)));
else
mColumnNames.AppendString(EmptyString());
}
// doing a sqlite3_prepare sets up the execution engine