pgsql-sdbc: document-by-comment

This commit is contained in:
Lionel Elie Mamane 2011-11-21 10:06:34 +01:00
parent acc65ffb2c
commit 3e1cb3e967

View file

@ -444,6 +444,9 @@ public:
values.push_back(s);
acquired.push_back(true);
}
// This const_cast is there for compatibility with PostgreSQL <= 9.1;
// PostgreSQL >= 9.2 has the right const qualifiers in the headers
// for a return type of "char const*const*".
char const** c_array() const { return const_cast <const char**>(&values[0]); }
};
@ -497,7 +500,7 @@ static void properties2arrays( const Sequence< PropertyValue > & args,
if( append )
{
OUString value;
tc->convertTo( args[i].Value ,getCppuType( &value) ) >>= value;
tc->convertTo( args[i].Value, getCppuType( &value) ) >>= value;
char *v = strdup(rtl::OUStringToOString(value, enc).getStr());
values.push_back ( v );
}