[Firebird-devel] Executing statement in the same context as external engine execution

2018-03-23 Thread Jiří Činčura
Hi *,

what's the expected path to take when I want to execute user provided statement 
in the same context (connection and transaction) in external engine? Do I have 
to go through IExternalContext etc. or can I maybe just call isc_dsql_execute2 
(and others around) with appropriate parameters and it's going to be fine?

-- 
Mgr. Jiří Činčura
https://www.tabsoverspaces.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Getting attachment_id from IAttachment

2018-03-23 Thread Jiří Činčura
> > Hi *,
> >
> > is there a way to get attachement_id (the same as in mon$attachments)
> > from IAttachment isntance?
> >
> 
> Certainly.
> Use isc_info_attachment_id in IAttachment::getInfo().

Thanks. Is there a macro or some helper to help me parse out the integer from 
the returned buffer? 

-- 
Mgr. Jiří Činčura
https://www.tabsoverspaces.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Win1252 Charset on MacOS

2018-03-23 Thread Paul Beach

> > Where did you get the code you are using from? Ideally you should have got 
> > it
> > from github B2_5_Release.
> 
> It's not from Github but official tarbal fom firebirdsql.org.

Which does not contain the few changes I added to make it build properly after
2.5.8 was released on Linux and Windows
 
> > -mmacosx-version-min=10.7 is now -mmacosx-version-min=10.9 libstdc++
> > has been deprecated. 
> 
> I'm going to change that on next builds. But currently seems to wokt
> with 10.7 setting. Indeed I do not have an 10.7 at hand to test it.

It will build, but deprecated implies that you might have an issue trying to
run it on 10.7 or 10.8... In any event without the fix for the _clock_gettime 
function
in configure.in your code will only run on 10.12 and no OS version below it.

> > By default the build is 64bit... you have to override it to get 32bit so
> > exporting -m64 and -arch x86_64 should be unnecessary.
> 
> Something went wrong without that - it sould not harm to have these defs.

No harm, but not necessary.

> > --with-system-icu? Apple don't ship a proper full ICU with the OS, you 
> > should be using the one
> > provided with Firebird.
> 
> For some reason compile stopped with an error when including ICU.
> Therefore I did install ICU to /usr/local

What was the error?

Paul

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Win1252 Charset on MacOS

2018-03-23 Thread Elmar Haneke

> Where did you get the code you are using from? Ideally you should have got it
> from github B2_5_Release.

It's not from Github but official tarbal fom firebirdsql.org.


> -mmacosx-version-min=10.7 is now -mmacosx-version-min=10.9 libstdc++
> has been deprecated. 

I'm going to change that on next builds. But currently seems to wokt
with 10.7 setting. Indeed I do not have an 10.7 at hand to test it.

> By default the build is 64bit... you have to override it to get 32bit so
> exporting -m64 and -arch x86_64 should be unnecessary.

Something went wrong without that - it sould not harm to have these defs.

> --with-system-icu? Apple don't ship a proper full ICU with the OS, you should 
> be using the one
> provided with Firebird.

For some reason compile stopped with an error when including ICU.
Therefore I did install ICU to /usr/local

Elmar

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] some issues with sed on macosx firebird master

2018-03-23 Thread Paul Beach
> > icu is installed
> >
> > ls /usr/local/opt/icu4c/lib
> >
> > icu libicuio.59.1.dylib libicutu.59.dylib
> > libicudata.59.1.dylib libicuio.59.dylib libicutu.a
> > libicudata.59.dylib libicuio.a libicutu.dylib
> > libicudata.a libicuio.dylib libicuuc.59.1.dylib
> > libicudata.dylib libicutest.59.1.dylib libicuuc.59.dylib
> > libicui18n.59.1.dylib libicutest.59.dylib libicuuc.a
> > libicui18n.59.dylib libicutest.a libicuuc.dylib
> > libicui18n.a libicutest.dylib pkgconfig
> > libicui18n.dylib libicutu.59.1.dylib
> >
> 
> Very good. But sooner of all there is no path to it. Please try (first 
> of all)
> export LD_LIBRARY_PATH=/usr/local/opt/icu4c/lib
> This is not best way of loading ICU but OK for first attempt.

DYLD_LIBRARY_PATH

Regards
Paul

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] some issues with sed on macosx firebird master

2018-03-23 Thread Alex Peshkoff via Firebird-devel

On 03/22/18 20:31, marius adrian popa wrote:

icu is installed

ls /usr/local/opt/icu4c/lib

icu libicuio.59.1.dylib libicutu.59.dylib
libicudata.59.1.dylib libicuio.59.dylib libicutu.a
libicudata.59.dylib libicuio.a libicutu.dylib
libicudata.a libicuio.dylib libicuuc.59.1.dylib
libicudata.dylib libicutest.59.1.dylib libicuuc.59.dylib
libicui18n.59.1.dylib libicutest.59.dylib libicuuc.a
libicui18n.59.dylib libicutest.a libicuuc.dylib
libicui18n.a libicutest.dylib pkgconfig
libicui18n.dylib libicutu.59.1.dylib



Very good. But sooner of all there is no path to it. Please try (first 
of all)

export LD_LIBRARY_PATH=/usr/local/opt/icu4c/lib
This is not best way of loading ICU but OK for first attempt.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel