Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-22 Thread Alex Peshkoff
On 06/22/2016 01:09 PM, Jiří Činčura wrote: >> input/output metadata (that's IMessageMetadata, yes?) provide you with a > Yes. > >> set of methods needed to access data in buffer correctly >> unavoidable one is getOffset() - it returns offset in a buffer where >> data is placed #include >>

Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-22 Thread Jiří Činčura
>Oh, c'mon. Inability to read full object name from XSQLDA field >doesn't mean to loose > ability to access values. True. In this case that wouldn't matter for me. -- Mgr. Jiří Činčura Independent IT Specialist

Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-22 Thread Dimitry Sibiryakov
22.06.2016 12:09, Jiří Činčura wrote: >> Yes, you can - but that's ugly choice. You loose for example ability to >> > access objects with names >31 symbol long. > OK, so I'm not going to go that path. Thanks for letting me know. It > might have been time wasted later. Oh, c'mon. Inability to

Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-22 Thread Jiří Činčura
> input/output metadata (that's IMessageMetadata, yes?) provide you with a Yes. > set of methods needed to access data in buffer correctly > unavoidable one is getOffset() - it returns offset in a buffer where > data is placed How's some called? I see only getRelation, getOffset, getType etc.

Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-22 Thread Alex Peshkoff
On 06/22/2016 09:21 AM, Jiří Činčura wrote: > Hello, > > when I finally grasped the FB_MESSAGE I realized that's not going to > help me. It generates struct and I have to know in advance the shape of > it. Which I don't know for whatever external procedure user writes. Yes, that works only for

Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-22 Thread Jiří Činčura
Hello, when I finally grasped the FB_MESSAGE I realized that's not going to help me. It generates struct and I have to know in advance the shape of it. Which I don't know for whatever external procedure user writes. So any other way to read/write the values? Basically just set of

Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-20 Thread Adriano dos Santos Fernandes
Em 20/06/2016 17:14, Jiří Činčura escreveu: >> There is FB_MESSAGE macro - look at sample 06.fb_message.cpp. > > Wow. Amesome. Thanks. > > And I have no idea what that does. Given my lack of knowledge of C++ > magic, I'm completely confused. :) What happened to simple C code that > was the same

Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-20 Thread Jiří Činčura
A lot of trying (and errors) and still nowhere near, I think. How one uses the FB_MESSAGE with the void* inMsg (or void* outMsg) in i.e. here https://github.com/FirebirdSQL/firebird/blob/master/src/include/firebird/FirebirdInterface.idl#L827 ? -- Mgr. Jiří Činčura Independent IT Specialist

Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-20 Thread Jiří Činčura
> There is FB_MESSAGE macro - look at sample 06.fb_message.cpp. Wow. Amesome. Thanks. And I have no idea what that does. Given my lack of knowledge of C++ magic, I'm completely confused. :) What happened to simple C code that was the same last hundred years? -- Mgr. Jiří Činčura Independent IT

Re: [Firebird-devel] Settings values in ExternalEngine

2016-06-20 Thread Alex Peshkoff
On 06/20/2016 04:17 PM, Jiří Činčura wrote: > Hi *, > > forgot my lack of knowledge of possible helper functions, but are the > some functions to help manipulate memory with values in ExternalEngine? > > I.e. the IExternalProcedure::open has void* inMsg and void* outMsg. > Although I can dig out