persistentstorage/sql/SRC/Server/SqlSrvStatement.inl
branchRCL_3
changeset 56 839ea9debada
parent 45 cc28652e0254
--- a/persistentstorage/sql/SRC/Server/SqlSrvStatement.inl	Wed Sep 15 14:05:58 2010 +0300
+++ b/persistentstorage/sql/SRC/Server/SqlSrvStatement.inl	Wed Oct 13 16:30:44 2010 +0300
@@ -87,8 +87,7 @@
 	__SQLASSERT(iBufType == HSqlSrvStmtParamBuf::EBufSimpleBind, ESqlPanicInternalError);
 	iBuf->ResizeL(aData.Length());
 	iBuf->Write(0, aData);
-	//If the size is 0, then return KNullDesC8, where an empty string is hold, not a null one ("" instead of NULL)
-	return iBuf->Size() == 0 ? KNullDesC8() : iBuf->Ptr(0);
+	return iBuf->Ptr(0);
 	}
 
 /**
@@ -101,8 +100,7 @@
 inline const TPtrC8 HSqlSrvStmtParamBuf::Data() const
 	{
 	__SQLASSERT(iBuf != NULL, ESqlPanicInvalidObj);
-	//If the size is 0, then return KNullDesC8, where an empty string is hold, not a null one ("" instead of NULL)
-	return iBuf->Size() == 0 ? KNullDesC8() : iBuf->Ptr(0);
+	return iBuf->Ptr(0);
 	}
 
 /**