Re: [Firebird-devel] Firebird.msg

2014-11-18 Thread Mark Rotteveel
On Tue, 18 Nov 2014 09:01:26 +0100, liviuslivius
liviusliv...@poczta.onet.pl wrote:
 i must ask - why client not get error message if in fbclient.dll
directory
 firebird.msg is not present?
 I got unknown isc error instead of server message.
 I can understand that client can have firebird.msg translated - but if
it
 not have, then error message should go from server.
  
 I always - in my CS projects use 2 way of translations:
 1. All translation files must be present at server side and client must
 send accept language info (like http protocol do)
 and if language translation is not present then i got messages in
default
 server language
 2. Translation at client side - server always send messages in its
default
 language but on client side can be other translation message file
  
 Can Firebird work in this as i suppose standard way?

Firebird only sends the error code (+ message parameters), the client
looks up the error message and replaces message parameters where necessary.
This removes the need to send the full messages over the wire. These byte
savings might not be so important these days, but probably was when this
was first implemented. It has the downside of needing to have firebird.msg
with the client. As far as I know you do get an error message that
firebird.msg is missing (or that might be specific to IBpp), followed by
several unknown isc errors.

This is not something that can be easily replaced without changing the
protocol and expectations of all existing clients (including those that
don't use fbclient.dll).

BTW: One thing I have learned in the past few years is that there are no
real standard ways of doing things anywhere.

Mark

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Visual Studio Community 2013

2014-11-18 Thread Jiří Činčura
  Are you suggesting this become the basis for all Windows based builds
 going forward?
 
 I wasn't, but it moving from Visual Studio 2010 to 2013 (or the upcoming
 2015) might be something to consider for the near future.

And we *might* benefit from support for AVX and AVX2 instructions (among others 
optimizations).

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


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Visual Studio Community 2013

2014-11-18 Thread Paul Beach
On 11/18/14 11:44, Ji?í ?in?ura wrote:
 Are you suggesting this become the basis for all Windows based builds
 going forward?

 I wasn't, but it moving from Visual Studio 2010 to 2013 (or the upcoming
 2015) might be something to consider for the near future.
 And we *might* benefit from support for AVX and AVX2 instructions (among 
 others optimizations).


If move somewhere - than on my mind to clang. It's much more friendly
than both current gcc and msvc10 (do not know about 12/13). Also it's
primary compiler for Darwin.

Ditto.

Regards
Paul


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Visual Studio Community 2013

2014-11-18 Thread Adriano dos Santos Fernandes
On 17/11/2014 19:05, Dimitry Sibiryakov wrote:
 17.11.2014 21:50, Mark Rotteveel wrote:
 moving from Visual Studio 2010 to 2013 (or the upcoming
 2015) might be something to consider for the near future.
On the other hand moving to GCC can make porting easier and reduce number 
 of cases when 
 development for one platform break build on others.

While it makes sense to have a single official VS projects files based
on a fully free VS, since Microsoft do not learned how to support the
same files in multiple versions, it does not have any sense to adopt a
single compiler for all builds.

Usage of multiple compilers is a good way to make better code.


Adriano


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Visual Studio Community 2013

2014-11-18 Thread Fabiano Kureck - Desenvolvimento SCI
I will love a more user friendly compiler (IDE) to explore FB source and 
maybe contribute also.


On 18/11/2014 07:47, Paul Beach wrote:

On 11/18/14 11:44, Ji?í ?in?ura wrote:

Are you suggesting this become the basis for all Windows based builds

going forward?

I wasn't, but it moving from Visual Studio 2010 to 2013 (or the upcoming
2015) might be something to consider for the near future.

And we *might* benefit from support for AVX and AVX2 instructions (among others 
optimizations).


If move somewhere - than on my mind to clang. It's much more friendly
than both current gcc and msvc10 (do not know about 12/13). Also it's
primary compiler for Darwin.

Ditto.

Regards
Paul


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrkFirebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] New API - requirements, wishes and hacks

2014-11-18 Thread Alex Peshkoff
On 11/18/14 03:50, Adriano dos Santos Fernandes wrote:
 Hi!

 Currently the API is problematic in any non usage scenario different
 than one used internally in FB code.

 We have the I classes witch are typedefs for a default policy, a
 policy that is just not suitable for C++, as it ignore exceptions and
 avoids every piece of the policy idea.

 Even if the code is improved to support exceptions, it will be our own
 exception class, not something C++ people is going to use.

 We have the I classes used in places they should not, like structs,
 typedefs, prototypes, meaning these items are bound to an unique policy.

Adriano, probably I did not understand you correctly. Please provide one 
or two samples.

 That's not what the cloop utility has designed for.

 We should have everything (structs - exception GDS_QUAD and legacy
 things), C++ concrete classes (the message code), etc inside the API class.

 But then, every use of the classes need a prefix::. Generally, the
 user is going to do this:

 #include firebird/Api.h

 typedef ::Firebird::ApiSomePolicy fb;

 fb::Attachment* attachment = ...

 This is one common way to use C++, many people does not include
 namespaces, but alias then to something more easy to type, when it's
 not. Most of time, this is really with namespaces, but in our case it
 will be a class.

Do you suggest it for external usage or internally?

 As a class, one cannot use (using keyword) they items. Also, as there
 are templates, the C++ version we use does not allow to typedef the
 items to extract them from the prefix class.

 If you do not want this, there is still alternative, but it's crap IMO.
 It consists of allowing a header to be included multiple times, and
 expect the user to write a piece of code (the policy in a namespace) and
 include that header in the middle of they code.

Adriano, looks like I can't understand you. Can you explain in few words 
- what problem are you solving now? How to provide people a comfortable 
way of writing a policy?




--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] New API - requirements, wishes and hacks

2014-11-18 Thread Adriano dos Santos Fernandes
On 18/11/2014 09:56, Dimitry Sibiryakov wrote:
 18.11.2014 12:40, Adriano dos Santos Fernandes wrote:
 When you have an IAttachment in DtcStart, or IStatus in any other (UDR)
 class, you're doing it wrong. IAttachment is bound to a policy.
So, all you need to make it right is to unbind IAttachment from a policy, 
 no?..

 As an API writer of a project that doesn't follow standards (talking
 specially about std exceptions)
API provided by DLL cannot use any exceptions if you forget...

You just don't understand. You understand nothing. It's difficult in
this way!

Read the code! Read the archives!


Adriano


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] New API - requirements, wishes and hacks

2014-11-18 Thread Dimitry Sibiryakov
18.11.2014 13:18, Adriano dos Santos Fernandes wrote:
 You just don't understand. You understand nothing. It's difficult in
 this way!

   But there is no alternative.

 Read the code! Read the archives!

   I told you many times that your code is completely unreadable. Didn't you 
listen?..

-- 
   WBR, SD.

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Visual Studio Community 2013

2014-11-18 Thread Mark Rotteveel
On Tue, 18 Nov 2014 14:08:59 +0200, Sergey Mereutsa s...@dqteam.com
wrote:
 Hello Mark,
 
 I noticed that 2013 Studio can be installed, but can not be runned on
 my Vista. I`m not sure it will produce Vista-compatible binaries.

I am not sure if applications compiled with the default v120 toolset will
work on Vista, but you also have a Windows XP/Server 2003 compatible
toolset (v120_xp). If the compiled executable runs on XP, it will also run
on Vista.

Mark

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Fb3 daily build and test broken

2014-11-18 Thread Philippe Makowski
Le 18/11/14 11:43, Sergey Mereutsa a écrit :


 just build 3.0.0.31439-Beta1.amd64 without any problems.

build process seems ok too, that the tests that fail




--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Fb3 daily build and test broken

2014-11-18 Thread Philippe Makowski
Le 18/11/14 13:56, Alex Peshkoff a écrit :
 Must say that this sequence of dots, F and pluses does not say much to
 me. (Probably F means failed?)
sorry
yes F is failed

 If something crashed we need core file and stack trace in order not to
 guess what happened. May be we can reproduce all this in other environment?


we'll see next run if we have something in firebird.log
if that's not enough, I will try to reproduce in another environment




--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] New API - requirements, wishes and hacks

2014-11-18 Thread Adriano dos Santos Fernandes
It seems I'm able to transform a policy class template into a namespace
with a policy applied, without C++11 features, which can then be used
and accessed without prefix.

That's with cloop test.

Firebird code is more complex. I'll try the same approach on it.


Adriano


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Visual Studio Community 2013

2014-11-18 Thread Adriano dos Santos Fernandes
On 18/11/2014 09:00, Mark Rotteveel wrote:

 While it makes sense to have a single official VS projects files based
 on a fully free VS, since Microsoft do not learned how to support the
 same files in multiple versions, it does not have any sense to adopt a
 single compiler for all builds.

 Usage of multiple compilers is a good way to make better code.
 Since Visual Studio 2012, solution and project definitions can be openened
 in all versions since Visual Studio 2010 (at least it does for C# projects,
 but I assume it does for C++ as well).


VS changing the project files each time you open it in a different
version is not friendly.

As we see, Vlad created a new set of project files for this version. If
it was good, that would not be required.


Adriano


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Visual Studio Community 2013

2014-11-18 Thread Vlad Khorsun
18.11.2014 17:39, Adriano dos Santos Fernandes wrote:
 On 18/11/2014 09:00, Mark Rotteveel wrote:

 While it makes sense to have a single official VS projects files based
 on a fully free VS, since Microsoft do not learned how to support the
 same files in multiple versions, it does not have any sense to adopt a
 single compiler for all builds.

 Usage of multiple compilers is a good way to make better code.
 Since Visual Studio 2012, solution and project definitions can be openened
 in all versions since Visual Studio 2010 (at least it does for C# projects,
 but I assume it does for C++ as well).


 VS changing the project files each time you open it in a different
 version is not friendly.

 As we see, Vlad created a new set of project files for this version. If
 it was good, that would not be required.

   If you compare msvc10 and msvc12 folders you'll found almost no difference.
Must say that while VS 2010 really converted older project files into its own
format, there was no such process in VS 2013 - it just loads solution and works.

Regards,
Vlad

PS VS 2013's IDE is a lot faster than VS 2010's one, i like it very much so far.


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Visual Studio Community 2013

2014-11-18 Thread Adriano dos Santos Fernandes
On 18/11/2014 14:14, Vlad Khorsun wrote:
If you compare msvc10 and msvc12 folders you'll found almost no difference.
 Must say that while VS 2010 really converted older project files into its own
 format, there was no such process in VS 2013 - it just loads solution and 
 works.


I tried in another project, and it inserted some lines about the
toolchain version.

It told if projects were not upgraded, the old toolchain would be used.


Adriano


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


Re: [Firebird-devel] Firebird.msg

2014-11-18 Thread James Starkey
No, the intention was to support non-English clients, period.

Translation of both messages and national character sets is always best
done on the client.  This shouldn't be a problem as a message file should
always be available, even if it's the default English version.  If there
isn't a message file, somebody screwed up.


On Tuesday, November 18, 2014, Mark Rotteveel m...@lawinegevaar.nl wrote:

 On Tue, 18 Nov 2014 09:01:26 +0100, liviuslivius
 liviusliv...@poczta.onet.pl javascript:; wrote:
  i must ask - why client not get error message if in fbclient.dll
 directory
  firebird.msg is not present?
  I got unknown isc error instead of server message.
  I can understand that client can have firebird.msg translated - but if
 it
  not have, then error message should go from server.
 
  I always - in my CS projects use 2 way of translations:
  1. All translation files must be present at server side and client must
  send accept language info (like http protocol do)
  and if language translation is not present then i got messages in
 default
  server language
  2. Translation at client side - server always send messages in its
 default
  language but on client side can be other translation message file
 
  Can Firebird work in this as i suppose standard way?

 Firebird only sends the error code (+ message parameters), the client
 looks up the error message and replaces message parameters where necessary.
 This removes the need to send the full messages over the wire. These byte
 savings might not be so important these days, but probably was when this
 was first implemented. It has the downside of needing to have firebird.msg
 with the client. As far as I know you do get an error message that
 firebird.msg is missing (or that might be specific to IBpp), followed by
 several unknown isc errors.

 This is not something that can be easily replaced without changing the
 protocol and expectations of all existing clients (including those that
 don't use fbclient.dll).

 BTW: One thing I have learned in the past few years is that there are no
 real standard ways of doing things anywhere.

 Mark


 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE

 http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
 Firebird-Devel mailing list, web interface at
 https://lists.sourceforge.net/lists/listinfo/firebird-devel



-- 
Jim Starkey
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrkFirebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


[Firebird-devel] [FB-Tracker] Created: (CORE-4611) Raise Firebird::string - length exceeds predefined limit in the trace plugin with include_filter

2014-11-18 Thread Oleg Matveyev (JIRA)
Raise Firebird::string - length exceeds predefined limit in the trace plugin 
with include_filter


 Key: CORE-4611
 URL: http://tracker.firebirdsql.org/browse/CORE-4611
 Project: Firebird Core
  Issue Type: Bug
  Components: Engine
Affects Versions: 2.5.3
Reporter: Oleg Matveyev


Start system audit with fbtrace.conf

include_filter  %12345678%
log_statement_prepare true
log_statement_start true
max_sql_length 300
log_filename s:\\sql_data\\test_trace.txt



Start any query with text length more than 16Kb raise exception in the 
firebird.log:

OLEGWed Nov 19 01:18:57 2014
Trace plugin fbtrace.dll returned error on call tpl_event_dsql_prepare.
Error details: Firebird::string - length exceeds predefined limit

and query was skiped in the logfile!


-- 
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



--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel