зеркало из https://github.com/mozilla/gecko-dev.git
value passed to bindDataParameter should be declared const, NOT PART OF THE BUILD
This commit is contained in:
Родитель
8f7328158d
Коммит
8df450478c
|
@ -78,7 +78,7 @@ interface mozIStorageStatement : mozIStorageValueArray {
|
|||
|
||||
void bindNullParameter (in unsigned long aParamIndex);
|
||||
|
||||
void bindDataParameter (in unsigned long aParamIndex, [array,size_is(aValueSize)] in octet aValue, in unsigned long aValueSize);
|
||||
void bindDataParameter (in unsigned long aParamIndex, [array,const,size_is(aValueSize)] in octet aValue, in unsigned long aValueSize);
|
||||
|
||||
// void bindParameters (in string aFormatString, ...);
|
||||
|
||||
|
|
|
@ -347,9 +347,9 @@ mozStorageStatement::BindNullParameter(PRUint32 aParamIndex)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void bindDataParameter (in unsigned long aParamIndex, [array, size_is (aValueSize)] in octet aValue, in unsigned long aValueSize); */
|
||||
/* void bindDataParameter (in unsigned long aParamIndex, [array, const, size_is (aValueSize)] in octet aValue, in unsigned long aValueSize); */
|
||||
NS_IMETHODIMP
|
||||
mozStorageStatement::BindDataParameter(PRUint32 aParamIndex, PRUint8 *aValue, PRUint32 aValueSize)
|
||||
mozStorageStatement::BindDataParameter(PRUint32 aParamIndex, const PRUint8 *aValue, PRUint32 aValueSize)
|
||||
{
|
||||
NS_ASSERTION (mDBConnection && mDBStatement, "statement not initialized");
|
||||
if (aParamIndex < 0 || aParamIndex >= mParamCount)
|
||||
|
|
Загрузка…
Ссылка в новой задаче