Re: [Firebird-devel] Physical replication using NBACKUP

2013-05-13 Thread Dmitry Starodubov
Hello. Thanks for review. > Thanks. > > After quick review i want to point to a trivial bug in > NBackup::backup_database() > > short null_flag = 0; > - in_sqlda->sqlvar[0].sqldata = (char*) &level; > - in_sqlda->sqlvar[0].sqlind = &null_flag; > + if (level >= 0) > + { > + in

Re: [Firebird-devel] Question about GCC and Firebird page structs

2013-05-13 Thread Norman Dunbar
Evening all, thanks for all the comments on my small problem. I have now resolved it. On a 64 bit system, I simply compile with -m32 added to the command line and I get a 32 bit executable. I suppose I could define ULONG and SLONG as ints, which are 32 bit on my laptop, but I think that might

Re: [Firebird-devel] Firebird as backend in LibreOffice.

2013-05-13 Thread Vlad Khorsun
> I have not seen in Firebird web any comment about the intention in > LibreOffice for use Firebird as backend. > > https://wiki.documentfoundation.org/Development/GSoC/Ideas#Support_for_Firebird_Database_in_Base > > https://bugs.freedesktop.org/show_bug.cgi?id=51780 > > I am user of Firebird and

Re: [Firebird-devel] Question about GCC and Firebird page structs

2013-05-13 Thread Dimitry Sibiryakov
13.05.2013 10:33, Vlad Khorsun wrote: > Exact data type definitions is at "src/include/fb_types.h". Types SLONG, ULONG and many others also are declared in Windows headers. Compilation result depends on include order. -- WBR, SD.

Re: [Firebird-devel] Question about GCC and Firebird page structs

2013-05-13 Thread Vlad Khorsun
> Morning Vlad, > > On 13/05/13 07:27, Vlad Khorsun wrote: > >> Looks like your ULONG is 8-byte integer while it shold be 4-byte. > > Thanks for that, I have defined the various types as follows - stolen > from somewhere in the Firebird source code. > > typedef signed char SCHAR; > typede

Re: [Firebird-devel] Question about GCC and Firebird page structs

2013-05-13 Thread Alex Peshkoff
On 05/13/13 12:20, Norman Dunbar wrote: > typedef signed long > typedef unsigned long this 2 are 64 bit in gcc -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to grap

Re: [Firebird-devel] Question about GCC and Firebird page structs

2013-05-13 Thread Dimitry Sibiryakov
13.05.2013 10:20, Norman Dunbar wrote: > I'll have a look and see what's what with 32-64 bit "stuff" in gcc and > sort out the code. Type "long" is 64 bits on 64 bits OS. You must replace it with "int". In Firebird sources it could be done too. -- WBR, SD. --

Re: [Firebird-devel] Question about GCC and Firebird page structs

2013-05-13 Thread Norman Dunbar
Morning Vlad, On 13/05/13 07:27, Vlad Khorsun wrote: > Looks like your ULONG is 8-byte integer while it shold be 4-byte. Thanks for that, I have defined the various types as follows - stolen from somewhere in the Firebird source code. typedef signed char SCHAR; typedef unsigned char UCHAR

Re: [Firebird-devel] "execute statement on external" between FB2.5 and FB3

2013-05-13 Thread Alex Peshkoff
On 05/08/13 23:54, Thomas Beckmann wrote: > Hi Alex, > > as you proposed, I corrected > UserManager = Legacy_UserManager > and was able to add a user, but still, using that account in accessing > the FB3.0-database from FB2.5, I get "your username and password is not > defined". Is AuthServer pa