Re: [Firebird-devel] Charset in IExternalProcedureImpl

2017-08-01 Thread Jiří Činčura
> I mean ExternalEngine::getCharSet, the function to set connection > charset for plugin management code. I see getCharSet on IExternalProcedureImpl only. Nothing on IExternalEngineImpl. :\ Anyway. I have there strncpy(name, "UTF-8", nameSize);, nothing else... > If you set charset there, I supp

Re: [Firebird-devel] Charset in IExternalProcedureImpl

2017-08-01 Thread Adriano dos Santos Fernandes
On 01/08/2017 02:52, Jiří Činčura wrote: >> This method changes the connection charset whiling the execute/open >> method is in progress. > What is this good for? > When an attachment runs external code, it may be in three different "states": - User (client) code (PSQL / SQL) - Plugin management

Re: [Firebird-devel] Charset in IExternalProcedureImpl

2017-07-31 Thread Jiří Činčura
> This method changes the connection charset whiling the execute/open > method is in progress. What is this good for? > It does not change how parameters are described. > > I suppose you can use ExternalEngine::getCharSet to change the default > charset to map parameters. You mean IMetadataBui

Re: [Firebird-devel] Charset in IExternalProcedureImpl

2017-07-31 Thread Adriano dos Santos Fernandes
On 27/07/2017 03:01, Jiří Činčura wrote: > Looks like it has no effect, though it is called. Using WIN1250 there > and I'm still getting the varchars in UTF-8 (connection charset). So > it probably has different purpose? > > This method changes the connection charset whiling the execute/open method

Re: [Firebird-devel] Charset in IExternalProcedureImpl

2017-07-26 Thread Jiří Činčura
Looks like it has no effect, though it is called. Using WIN1250 there and I'm still getting the varchars in UTF-8 (connection charset). So it probably has different purpose? -- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ On Mon, Jul 24, 2017, at 11:56, Jiří Činčura wrote: > Hi *, > > do I

[Firebird-devel] Charset in IExternalProcedureImpl

2017-07-24 Thread Jiří Činčura
Hi *, do I understand correctly that the IExternalProcedureImpl::getCharSet allows me to tell engine in what charset I want the varchar/char values? Because although I have UTF-8 hardcoded there, when I declare procedure parameter as "result varchar(1) character set ascii" I'm getting length==1 in