Kaydet (Commit) 3e1cb3e9 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

pgsql-sdbc: document-by-comment

üst acc65ffb
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment