Poco::Data default storage should be std::vector #1172

This commit is contained in:
Alex Fabijanic
2016-04-23 13:01:45 -06:00
parent a5d7e994f5
commit b14b6f3d7f
2 changed files with 6 additions and 6 deletions

View File

@@ -170,7 +170,7 @@ class Extraction<std::vector<T> >: public AbstractExtraction
/// Vector Data Type specialization for extraction of values from a query result set.
{
public:
typedef std::vector<T> ValType;
typedef SharedPtr<ValType> ValPtr;
typedef Extraction<ValType> Type;

View File

@@ -339,7 +339,7 @@ private:
}
template <class C>
SharedPtr<InternalBulkExtraction<C> > createBulkExtract(const MetaColumn& mc, size_t position)
SharedPtr<InternalBulkExtraction<C> > createBulkExtract(const MetaColumn& mc, size_t position)
{
C* pData = new C;
Column<C>* pCol = new Column<C>(mc, pData);
@@ -366,18 +366,18 @@ private:
switch (_storage)
{
case STORAGE_DEQUE_IMPL:
case STORAGE_DEQUE_IMPL:
storage = DEQUE; break;
case STORAGE_VECTOR_IMPL:
case STORAGE_VECTOR_IMPL:
storage = VECTOR; break;
case STORAGE_LIST_IMPL:
case STORAGE_LIST_IMPL:
storage = LIST; break;
case STORAGE_UNKNOWN_IMPL:
storage = AnyCast<std::string>(session().getProperty("storage"));
break;
}
if (storage.empty()) storage = DEQUE;
if (storage.empty()) storage = VECTOR;
if (0 == icompare(DEQUE, storage))
{