Hello,

On 05/04/2011 18:42, Martin Pyle wrote:

> It may be worth observing that OTL and SQLAPI both use custom date-time
> types which have fractions of seconds.

This is true.

> In my view that might be a better choice than dear old std::tm.

The dear old std::tm was chosen as the most "standard" type for 
expressing datetimes. I have to admit that after all these years this 
choice does not seem as obvious today.

> What would that custome dat-time type be?

I was thinking about it, too, and yet another idea would be to introduce 
a SOCI-specific type for this purpose. It could be something similar to 
std::tm, just with additional field for fractions. Then, simple user 
conversions could be used to translate this to whatever target type is 
needed - whether std::tm, boost::ptime, or whatever else.
Such a solution would be simpler than any "pre-processor magic" and in 
particular would isolate backend internals from user preferences.

In any case, I would like to leave this subject for the next release, as 
every reasonable solution that is on the radar would involve substantial 
modifications and we do not have appropriate resources to ensure proper 
testing in a short time.

> Mind you, I have no idea what backwards compatibility issuse that would
> cause for SOCI users.

With the above solution and user conversions to/from std::tm, users 
would see no semantic difference.

> /*
> start aside/appology
> Pardon my total ignorance but how do I *answer/reply* to existing thread
> or post?

Normally just replying to the given mail works fine with all reasonable 
mail programs. I'm now just replying to your mail (and I hope it will 
work fine ;-) ).

> As a work around/hack I've just copied subject from the on-line archive?

Now I see. The simple reply works if you already have the given mail in 
your mail program.
But I think that what you did is perfectly OK. Well, it worked.

We might also think about moving everything to some newly created 
discussion group, but since this is a matter of personal taste, I would 
rather avoid pushing it. We've had enough fighting over source control 
systems in the past. :-)

Regards,

-- 
Maciej Sobczak * www.msobczak.com * www.inspirel.com

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to