pgsql-sdbc: document-by-comment
This commit is contained in:
parent
acc65ffb2c
commit
3e1cb3e967
1 changed files with 4 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue