Re: [Firebird-devel] curTime() throws division by zero

2014-02-28 Thread Alex
On 02/28/2014 03:21 PM, Dimitry Sibiryakov wrote: 28.02.2014 8:39, Alex wrote: Please try this patch - if it helps please commit it It works at first glance, but I'm afraid of possible integer overflow. Wouldn't be better to use floating-point operations and then cast to integer before

Re: [Firebird-devel] curTime() throws division by zero

2014-02-28 Thread Dimitry Sibiryakov
28.02.2014 12:33, Alex wrote: May be better use INT64? It should be big enough here. Performance counters already use SINT64. Perhaps, it is not for nothing. -- WBR, SD. -- Flow-based real-time traffic

[Firebird-devel] Build failed

2014-02-28 Thread Dimitry Sibiryakov
I'm trying to build Win32 release build on Windows 8 64 bits using MSVC 2010 Express 32 bits. 12ClCompile: 12 UdrEngine.cpp 12..\..\..\src\plugins\udr_engine\UdrEngine.cpp(418): error C2375: 'Firebird::Udr::fbUdrRegFunction' : redefinition; different linkage 12 c:\users\sd\my

Re: [Firebird-devel] curTime() throws division by zero

2014-02-28 Thread Alex
On 02/28/2014 03:36 PM, Dimitry Sibiryakov wrote: 28.02.2014 12:33, Alex wrote: May be better use INT64? It should be big enough here. Performance counters already use SINT64. Perhaps, it is not for nothing. In that case I'm not afraid of overflow here. Even after * 100.

Re: [Firebird-devel] curTime() throws division by zero

2014-02-28 Thread Dimitry Sibiryakov
28.02.2014 13:30, Alex wrote: In that case I'm not afraid of overflow here. Even after * 100. Ok, let Dmitry or Vlad commit your patch then - I have no rights. -- WBR, SD. -- Flow-based real-time traffic

Re: [Firebird-devel] Build failed

2014-02-28 Thread Alex
On 02/28/2014 04:20 PM, Dimitry Sibiryakov wrote: I'm trying to build Win32 release build on Windows 8 64 bits using MSVC 2010 Express 32 bits. 12ClCompile: 12 UdrEngine.cpp 12..\..\..\src\plugins\udr_engine\UdrEngine.cpp(418): error C2375: 'Firebird::Udr::fbUdrRegFunction' :

Re: [Firebird-devel] curTime() throws division by zero

2014-02-28 Thread Alex
On 02/28/2014 04:33 PM, Dimitry Sibiryakov wrote: 28.02.2014 13:30, Alex wrote: In that case I'm not afraid of overflow here. Even after * 100. Ok, let Dmitry or Vlad commit your patch then - I have no rights. No problems - will do it on Monday.

[Firebird-devel] The icu loading issue is fixed in Ubuntu Trusty Tahr

2014-02-28 Thread marius adrian popa
The icu loading issue is fixed in Ubuntu Trusty Tahr 14.04 Firebird 2.5 package https://launchpad.net/ubuntu/+source/firebird2.5/2.5.2.26540.ds4-9ubuntu1 14.04 is a LTS release so is important to have a stable firebird2.5 package

Re: [Firebird-devel] Build failed

2014-02-28 Thread Alex
On 02/28/2014 04:59 PM, Dimitry Sibiryakov wrote: 28.02.2014 13:41, Alex wrote: Try to change all 3 in UdrEngine.h from extern C void fbUdrReg.. to extern C void ISC_EXPORT fbUdrReg New API still continue old hell with stdcall?.. That's not part of interface.

Re: [Firebird-devel] Build failed

2014-02-28 Thread Dimitry Sibiryakov
28.02.2014 13:41, Alex wrote: Try to change all 3 in UdrEngine.h from extern C void fbUdrReg.. to extern C void ISC_EXPORT fbUdrReg New API still continue old hell with stdcall?.. Anyway, it doesn't help. Udr engine is not required for server running, so I can

Re: [Firebird-devel] Build failed

2014-02-28 Thread Vlad Khorsun
Fixed. Regards, Vlad -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic

[Firebird-devel] isc_dsql_fetch() return code 101

2014-02-28 Thread Dimitry Sibiryakov
What is the meaning of subj? 100 is no more data, but 101?.. -- WBR, SD. -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow

[Firebird-devel] Old API and wide result set

2014-02-28 Thread Dimitry Sibiryakov
Hello, All. Attached patch gives to isc_dsql_fetch(), isc_dsql_execute2() and isc_dsql_exec_immed2() ability to work with wide result set. Test application is attached as well. -- WBR, SD. why.cpp.diff.7z Description: Binary data WideRS.cpp.7z Description: Binary data

Re: [Firebird-devel] isc_dsql_fetch() return code 101

2014-02-28 Thread Helen Borrie
At 04:08 a.m. 1/03/2014, Dimitry Sibiryakov wrote: What is the meaning of subj? 100 is no more data, but 101?.. 101 | 335544366 | segment | Segment buffer length shorter than expected Something to do with your next Old API and wide result set and a BLOB sub_type 1? H

Re: [Firebird-devel] isc_dsql_fetch() return code 101

2014-02-28 Thread Dimitry Sibiryakov
28.02.2014 18:48, Helen Borrie wrote: At 04:08 a.m. 1/03/2014, Dimitry Sibiryakov wrote: What is the meaning of subj? 100 is no more data, but 101?.. 101 | 335544366 | segment | Segment buffer length shorter than expected It seems to be something different. Something to do with your

Re: [Firebird-devel] isc_dsql_fetch() return code 101

2014-02-28 Thread Dmitry Yemanov
28.02.2014 22:06, Adriano dos Santos Fernandes wrote: Isn't it related to the READ/WRITE BLOB commands, which was removed from v3? It looks so. Blob errors could be priorly returned from DSQL API calls only in case of these commands, but now this should not happen. Dmitry

Re: [Firebird-devel] isc_dsql_fetch() return code 101

2014-02-28 Thread Adriano dos Santos Fernandes
On 28/02/2014 12:08, Dimitry Sibiryakov wrote: What is the meaning of subj? 100 is no more data, but 101?.. Isn't it related to the READ/WRITE BLOB commands, which was removed from v3? Adriano -- Flow-based

Re: [Firebird-devel] isc_dsql_fetch() return code 101

2014-02-28 Thread Dimitry Sibiryakov
28.02.2014 19:19, Dmitry Yemanov wrote: 28.02.2014 22:06, Adriano dos Santos Fernandes wrote: Isn't it related to the READ/WRITE BLOB commands, which was removed from v3? It looks so. Blob errors could be priorly returned from DSQL API calls only in case of these commands, but now this