Tommi Mäkitalo | 6 Feb 00:29

Re: cxxtools on Windows

On 01/31/2012 10:46 PM, ArtemGr wrote:
> Tommi Mäkitalo<tommi@...>  writes:
>> But I wonder, how to solve that. The problem happens, when we compile
>> addrinfo.cpp. The first header it includes is cxxtools/net/addrinfo.h. There
>> the first header is cxxtools/api.h. There is this:
>>
>> ...
>>
>> #if defined(WIN32) || defined(_WIN32)
>>      // suppress min/max macros from win32 headers
>>      #ifndef NOMINMAX
>>      #define NOMINMAX
>>      #endif
>> ...
> Using
> #if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
> in cxxtools/api.h solves that.
>
Thank you for the tip. I fixed it and checked it in.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Tntnet-general mailing list
Tntnet-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tntnet-general
(Continue reading)

Tommi Mäkitalo | 12 Feb 23:19

release candidates for cxxtools, tntnet and tntdb

Hi,

I uploaded some release candidates for cxxtools, tntnet and tntdb. You 
can find them at:

http://www.tntnet.org/download/cxxtools-2.1rc3.tar.gz
http://www.tntnet.org/download/tntnet-2.1rc2.tar.gz
http://www.tntnet.org/download/tntdb-1.2rc2.tar.gz

There are no links yet on the homepage. I plan to create releases in the 
next few days, if there are no showstoppers.

One problem, which remains is the missing support for the oraclestudio 
compiler. There are some incompatibilities in the library to the C++ 
standard, where I have no good workarounds found yet. The compiler ships 
with 3 implementations of the standard library: a rougue-wave based, 
stlport and apache-stl. The first 2 have compatibility problems and the 
apache-stl is so new, that there is no support in libtool yet available. 
I try to fix that but don't want to wait for a release until that.

Please test the release candidates and report any problems.

Tommi

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
(Continue reading)

Tommi Mäkitalo | 13 Feb 18:33

Re: release candidates for cxxtools, tntnet and tntdb

Currently they match svn trunk. I will make a branch soon. The revision 
numbers are here:

cxxtools: r1451
tntnet: r1371
tntdb: r285

Tommi

On 02/13/2012 08:36 AM, rath@... wrote:
> Hi Tommi,
>
> to which svn release numbers do they correlate?
>
> Regards,
> Oliver
>
>

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Christian Ferrari | 18 Feb 21:54
Picon
Favicon
Gravatar

Using LIXA with Tntnet

Dear all,
I'm signaling all the user of Tntnet that LIXA could be a nice to have feature for Tntnet.
LIXA (http://lixa.sourceforge.net) is a Transaction Manager compliant with X/Open specifications: XA
and TX (Transaction Demarcation).
Using LIXA you can perform distributed transactions with two phase commit between some Resource Managers
(PostgreSQL, MySQL, Oracle, DB2).
The availability of a Transaction Manager is really important in JEE arena because it divides servlet
containers from application servers; it might be important for a C++ application server like Tntnet too.

I think LIXA could be useful to all the users that need to update two or more different Resource Managers
inside the same business logic (transaction).
Feel free to contact me for more information.
Regards,
Ch.F.

-------------------------------------------------------------------
Decent workarounds outperform poor solutions 

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Carlos Franke | 25 Feb 09:42
Favicon

Re: release candidates for cxxtools, tntnet and tntdb

Hi Tommi!

I am trying to use the new SqlBuilder class to handle list-placeholders.
First of all: Great to have something to make this easier! From a
library user's point of view, though, it would be nicer to have this
feature built into tntdb::Statement, so that you could set scalar and
list placeholders in one go. Currently it seems that you have to do:
1. Create a SqlBuilder object.
2. Handle list placeholders.
3. Create a Statement object.
4. Handle scalar placeholders.
 – which seems quite a lot.

Apart from that, SqlBuilder does not actually work for me,
unfortunately. I tried using both its method "replace" and
"extendParam", but neither seems to perform any replacing/extending:
When I print the query as a string, the original placeholder is still
in place. See the attached source file for details on what I tried. Am
I doing somethin wrong?

I am using the release candidates of Tntdb (1.2rc2) and Cxxtools
(2.1rc3).

Carlos
Attachment (test.cpp): text/x-c++src, 1495 bytes
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
(Continue reading)

Carlos Franke | 25 Feb 09:51
Favicon

Re: Segfault when accessing empty cell with Row::operator[]

Hi!

Sorry for not responding earlier, and thank you for your advice, Tommi.

> > For now, I am working around the issue like this:
> > string my_string = ( my_row.isNull(1)  ?  ""  :  my_row[1].getString() );
[…]
> You can easily work around it using:
> 
> string my_string;
> myrow[1] >> my_string;
> 
> The >> operator does nothing, if the value is null. It just returns 
> false. If you are not interested in the return value, just ignore it as 
> in my example.

This is nice. I am still sticking to the isNull-solution for now, it
seems more intuitive to me, or it least it shows what is going on,
while operator>> looks a little obscure to me.

> And I don't feel it too intuitive to return an empty string for a null 
> value. Either the field contains an empty string or it is null. 

You are of course correct. Being a SQL novice, I did not realize there
was a difference between empty strings and null.

Carlos
------------------------------------------------------------------------------
(Continue reading)

Tommi Mäkitalo | 25 Feb 11:39

Re: Segfault when accessing empty cell with Row::operator[]


> You are of course correct. Being a SQL novice, I did not realize there
> was a difference between empty strings and null.
>
> Carlos
>
One funny thing is, that oracle indeed do not make a difference between 
empty strings and null. But it seems obscure to me.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

Gmane