Re: [Firebird-devel] FB 3 RC2 never asks last byte byte for isc_info_svc_stdin

2016-03-18 Thread Jiří Činčura
> Confirmed.

Should I create tracker item?

-- 
Mgr. Jiří Činčura
Independent IT Specialist

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


[Firebird-devel] [FB-Tracker] Created: (CORE-5157) Server hangs when data is sent from client to the service in small packets

2016-03-18 Thread Alexander Peshkov (JIRA)
Server hangs when data is sent from client to the service in small packets
--

 Key: CORE-5157
 URL: http://tracker.firebirdsql.org/browse/CORE-5157
 Project: Firebird Core
  Issue Type: Bug
Affects Versions: 4.0 Initial, 3.0 RC2, 2.5.5
Reporter: Alexander Peshkov


Instead of sending the amount of bytes server allows, I send always one
byte. After 2nd byte one thread in `firebird.exe` goes into infinite
loop. I think this should not happen. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] IService::start() and isc_spb_utf8_filename

2016-03-18 Thread Dimitry Sibiryakov

17.03.2016 10:37, Alex Peshkoff wrote:

it will be very good idea to try on non-utf8 OS


  Attached a little expanded test case. It fails on Windows with ANSI code page 1251 both 
using and not using isc_spb_utf8_filename flag.

  Can someone confirm that before I go to tracker?

--
  WBR, SD.


test_utf8.cpp.7z
Description: Binary data
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Git

2016-03-18 Thread Mark Rotteveel
On 2016-03-17 12:47, Adriano dos Santos Fernandes wrote:
> On 17/03/2016 08:33, Mark Rotteveel wrote:
>> On 2016-03-17 11:56, Dimitry Sibiryakov wrote:
>>> 17.03.2016 11:24, Paul Beach wrote:
 I am now trying to work out exactly what I need
 to do to start committing some of my changes for the Mac Port for
 3.0
 back into git...
>>>I may be wrong, but you cannot create a pull request from local
>>> repository clone. You
>>> must fork it into your account beforehand.
>> You don't *need* to have your own fork to do that, you can also 
>> create
>> pull requests from branches in the same repository. So if Paul 
>> pushes
>> his branch to origin, he can create a pull request from that branch 
>> to
>> the B_3_0_Release branch (assuming he has at least sufficient rights 
>> to
>> push his own branch).

> But custom branches for minor or individual work should not go to
> FirebirdSQL/firebird but to personal forks.

Have we actually established that policy, or are you inventing that 
rule on the spot?

BTW: Not saying that I disagree, but I think we are inventing rules on 
the fly that not everyone agreed on.

Mark

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Git

2016-03-18 Thread Paul Beach
> > e.g.
> > git checkout -b mac-port B3_0_Release
> 
> You need "git clone" before that (just once for all the subsequent work).

I have got as far as that - I am now trying to work out exactly what I need 
to do to start committing some of my changes for the Mac Port for 3.0
back into git... now that I have 3.0 building cleanly.

Regards
Paul

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


[Firebird-devel] ClimpletReader in svcSendItems mode

2016-03-18 Thread Dimitry Sibiryakov
   Hello, All.

   Do I understand right that subj can be used to parse buffer returned by 
isc_service_query()? If so, why fbsvcmgr don't use it?

-- 
   WBR, SD.

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] ClimpletReader in svcSendItems mode

2016-03-18 Thread Dimitry Sibiryakov
17.03.2016 17:11, Alex Peshkoff wrote:
> even more crazy continuation from call to call: parsing
> single returned buffer is just impossible, only from the beginning of
> data exchange keeping history.

   According to IB API Guide, there is no continuation. If the buffer is too 
small, it 
contains isc_info_truncated and next call to isc_service_query() returns the 
same data 
again from the beginning.

-- 
   WBR, SD.

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


[Firebird-devel] [FB-Tracker] Created: (CORE-5154) Statistics service doesn't work with non-ascii database names

2016-03-18 Thread Dimitry Sibiryakov (JIRA)
Statistics service doesn't work with non-ascii database names
-

 Key: CORE-5154
 URL: http://tracker.firebirdsql.org/browse/CORE-5154
 Project: Firebird Core
  Issue Type: Bug
  Components: API / Client Library, Engine, GSTAT
Affects Versions: 4.0 Initial, 3.0 RC2
 Environment: Windows, ANSI code page 1251
Reporter: Dimitry Sibiryakov


With or without isc_spb_utf8_filename in parameters a client application cannot 
get statistics from database which name includes cyrillic characters using 
services.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Git

2016-03-18 Thread Mark Rotteveel
On 2016-03-17 11:56, Dimitry Sibiryakov wrote:
> 17.03.2016 11:24, Paul Beach wrote:
>> I am now trying to work out exactly what I need
>> to do to start committing some of my changes for the Mac Port for 
>> 3.0
>> back into git...
>
>I may be wrong, but you cannot create a pull request from local
> repository clone. You
> must fork it into your account beforehand.

You don't *need* to have your own fork to do that, you can also create 
pull requests from branches in the same repository. So if Paul pushes 
his branch to origin, he can create a pull request from that branch to 
the B_3_0_Release branch (assuming he has at least sufficient rights to 
push his own branch).

Mark

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Firebird support for "newer" compilers & SDKs / especially on Windows & MacOS X

2016-03-18 Thread Lionel Elie Mamane
On Tue, Mar 15, 2016 at 11:13:31PM +0300, Dmitry Yemanov wrote:
> 15.03.2016 18:37, Lionel Elie Mamane wrote:

>> Short version: will Firebird (2.5? 3? latest?) in general be kept
>> compatible with the latest major compilers (within a reasonable time
>> of their release) for each platform for the foreseeable future?

> Yes. Just don't expect it to happen immediately.

Yeah, yeah, I wrote "reasonable time", not immediately. Thanks for
your answer.

-- 
Lionel

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


[Firebird-devel] Linux autogenerated password for SYSDBA

2016-03-18 Thread Dimitry Sibiryakov
   Hello, All.

   Subj is still placed in a well-known place?

-- 
   WBR, SD.

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] ClimpletReader in svcSendItems mode

2016-03-18 Thread Dimitry Sibiryakov
18.03.2016 9:12, Alex Peshkoff wrote:
> If one tries to receive users list from server according to that guide
> he will be much surprised.
> No restart (that's correct - list may be >64Kb), no isc_info_truncate -
> just interrupted at arbitrary point at buffer's boundary, even inside a
> clumplet.

   Do something prevent us from doing it in a right way?

-- 
   WBR, SD.

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] gstat and non-existing password file

2016-03-18 Thread Alex Peshkoff
On 03/18/2016 07:59 PM, Dimitry Sibiryakov wrote:
> Hello, All.
>
> I wonder why gstat doesn't complain if it is asked to fetch password from 
> non-existing
> file?..
>

I've tried to make utilities behave in that case more or less like they 
do when there is no argument after -password switch.


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] IService::start() and isc_spb_utf8_filename

2016-03-18 Thread Dimitry Sibiryakov

16.03.2016 16:14, Александр Пешков wrote:

it works another way - not like you describe


  Ok, can you, please, point me why attached program doesn't work with vanilla 
FB3?..

--
  WBR, SD.


test_utf8.cpp.7z
Description: Binary data
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] IService::start() and isc_spb_utf8_filename

2016-03-18 Thread Alex Peshkoff
On 03/16/2016 08:17 PM, Dimitry Sibiryakov wrote:
> 16.03.2016 16:14, Александр Пешков wrote:
>> it works another way - not like you describe
>
>   Ok, can you, please, point me why attached program doesn't work with 
> vanilla FB3?..
>

Because it's buggy. isc_spb_utf8_filename should not be present in spb 
for start - style of filenames definition is predefined when you attach 
to service.

 ISC_SCHAR qry[] =  {isc_action_svc_db_stats,
 isc_spb_dbname, 8, 0,
 0xD0, 0x90, 0xD0, 0x91, 0xD0, 0x92, 0xD0, 0x93,
//  new_dbname[0], new_dbname[1], new_dbname[2], 
new_dbname[3],
//  new_dbname[4], new_dbname[5], new_dbname[6], 
new_dbname[7],
//  isc_spb_dbname, 4, 0,
//  '�','�','�','�',
 isc_spb_options, isc_spb_sts_hdr_pages, 0, 0, 0
//  isc_spb_utf8_filename, 0
};

In this way it works for me - but it will be very good idea to try on 
non-utf8 OS. My kernel does not let create files in CP1251 (very 
non-standard build, typically kernel does it).
I suppose this answers most of your questions from prev email except 
probably:

>Another funny thing: isc_spb_dbname in isc_action_svc_db_stats 
> block is not recognized
> as a string at all. Is it intended to be a backward compatibility bug?

No - it's our as always wonderful diagnostics. Any unrecognised tag 
(isc_spb_utf8_filename in your case) causes a message that service has 
no parameters. A candidate for fix.


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] RFC: File names with non-ASCII non-ANSI letters

2016-03-18 Thread James Starkey
On Wednesday, March 16, 2016, Lester Caine  wrote:

> On 16/03/16 08:18, Александр Пешков wrote:
> > Could somebody explain why Firebird is in the filename translation
> > business at all?
> >
> > Imagine a system, containing linux server, using UTF-8 encoding, some
> > linux clients (also UTF-8) and some windows clients (cp1251, I use
> > russian sample) and using russian name for database file. W/o
> > translation filenames, received from windows client, will binary differ
> > from one, used by linux clients and server, which will cause file open
> > failure.
>
> Given that it's not just Firebird that has a problem with the crap M$
> still peddle, more generic solutions exist already. Having used
> alias.conf for many years and kept the alias to 7bit ASCII characters
> has been one approach, so perhaps this could be expanded to include
> several aliases all mapping to the one safely wrapped internal name and
> path? I do find it strange that people still use OS specific settings on
> networked systems which could well have problems with that. None of my
> users even know that it's Firebird providing the grunt, as the hack
> attempts attest, so shouldn't the inter OS conversion problems be
> handled in a different way?
>
>
Or simply restrict database file names to ASCII.  It's not like users have
to deal with them, just like they don't have to deal with identifiers in
SQL, or C or Java.

Or let them specify whatever they want with the caveat that if they specify
a file name in different character sets they may not like the results.

A database system really shouldn't have to be in the file name translation
business.

So givem a short but safe rope or a long but potentially problematic rope,
but trying to provide a lot of highly complex ESP obviously isn't working.
If you can't nail a solution in five years, maybe there just isn't a
solution that's better than the problem.



> --
> Lester Caine - G8HFL
> -
> Contact - http://lsces.co.uk/wiki/?page=contact
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk
> Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
>
>
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
> Firebird-Devel mailing list, web interface at
> https://lists.sourceforge.net/lists/listinfo/firebird-devel
>


-- 
Jim Starkey
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel