mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-18 19:48:44 +02:00
date/time test fix; g++ compilation fix for bulk
This commit is contained in:
@@ -40,6 +40,7 @@
|
|||||||
#define Data_Bulk_INCLUDED
|
#define Data_Bulk_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
|
#include "Poco/Void.h"
|
||||||
#include "Poco/Data/Limit.h"
|
#include "Poco/Data/Limit.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -98,7 +99,7 @@ inline Bulk bulk(const Limit& limit = Limit(Limit::LIMIT_UNLIMITED, false, false
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline void bulk()
|
inline void bulk(Void)
|
||||||
/// Dummy bulk function. Used for bulk binding creation
|
/// Dummy bulk function. Used for bulk binding creation
|
||||||
/// (see BulkBinding) and bulk extraction signalling to Statement.
|
/// (see BulkBinding) and bulk extraction signalling to Statement.
|
||||||
{
|
{
|
||||||
@@ -108,7 +109,7 @@ inline void bulk()
|
|||||||
} // namespace Keywords
|
} // namespace Keywords
|
||||||
|
|
||||||
|
|
||||||
typedef void (*BulkFnType)();
|
typedef void (*BulkFnType)(Void);
|
||||||
|
|
||||||
|
|
||||||
} } // namespace Poco::Data
|
} } // namespace Poco::Data
|
||||||
|
@@ -1071,11 +1071,8 @@ void DataTest::testDateAndTime()
|
|||||||
Date d1(2007, 6, 15);
|
Date d1(2007, 6, 15);
|
||||||
d1.assign(d.year() - 1, d.month(), d.day());
|
d1.assign(d.year() - 1, d.month(), d.day());
|
||||||
assert (d1 < d); assert (d1 != d);
|
assert (d1 < d); assert (d1 != d);
|
||||||
if (d.month() > 1)
|
|
||||||
d1.assign(d.year(), d.month() - 1, d.day());
|
|
||||||
else
|
|
||||||
d1.assign(d.year() - 1, 12, d.day());
|
|
||||||
|
|
||||||
|
d1.assign(d.year() - 1, 12, d.day());
|
||||||
assert (d1 < d); assert (d1 != d);
|
assert (d1 < d); assert (d1 != d);
|
||||||
|
|
||||||
if (d.day() > 1)
|
if (d.day() > 1)
|
||||||
@@ -1087,9 +1084,6 @@ void DataTest::testDateAndTime()
|
|||||||
d1.assign(d.year() + 1, d.month(), d.day());
|
d1.assign(d.year() + 1, d.month(), d.day());
|
||||||
assert (d1 > d); assert (d1 != d);
|
assert (d1 > d); assert (d1 != d);
|
||||||
|
|
||||||
if (d.month() < 12)
|
|
||||||
d1.assign(d.year(), d.month() + 1, d.day());
|
|
||||||
else
|
|
||||||
d1.assign(d.year() + 1, 1, d.day());
|
d1.assign(d.year() + 1, 1, d.day());
|
||||||
assert (d1 > d); assert (d1 != d);
|
assert (d1 > d); assert (d1 != d);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user