mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 333306 r+a=vladimir Crash with pragma statements that return values
This commit is contained in:
parent
98ca29135d
commit
50798069cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user