Re: [firebird-support] Re: On Updating One Column Value, Update Time Stamp in Another Column

2017-08-09 Thread Paul Vinkenoog p...@vinkenoog.nl [firebird-support]
ul: http://www.firebirdfaq.org/ And Helen Borrie's Firebird Book is a great manual which also includes chapter(s) on SP's, triggers and PSQL. It's not free though! You'll find it here: https://www.ibphoenix.com/ (You may need to scroll down a bit.) Hope this helps! Cheers, Paul Vinkenoog

Re: [firebird-support] Re: On Updating One Column Value, Update Time Stamp in Another Column

2017-08-09 Thread Paul Vinkenoog p...@vinkenoog.nl [firebird-support]
44569 > Engine Message : > Dynamic SQL Error > SQL error code = -104 > Token unknown - line 1, column 23 > update My fault! If forgot the trigger name. It should be: create trigger MyTrigger before update on Table_Name ... Instead of MyTrigger, you choose a more meaningful name of course. Cheers, Paul Vinkenoog

Re: [firebird-support] Re: On Updating One Column Value, Update Time Stamp in Another Column

2017-08-09 Thread Paul Vinkenoog p...@vinkenoog.nl [firebird-support]
begin if (new.col3 is distinct from old.col3) then new.col5 = current_timestamp; end# set term ;# If col3 is non-nullable you can simply use "new.col3 <> old.col3" in the test. Mind you, an explicit update that re-enters the existing value in col3 won't cause col5 to be updated! HTH, Paul Vinkenoog

Re: [firebird-support] Case and Accent insensitive compares

2016-06-16 Thread Paul Vinkenoog p...@vinkenoog.nl [firebird-support]
o when it's strictly about German, AI collations seem useless, except for catching certain foreign words and names likes Gérard/Gerard, or misspellings of Kekulé. Cheers, Paul Vinkenoog

Re: [firebird-support] Case and Accent insensitive compares

2016-06-15 Thread Paul Vinkenoog p...@vinkenoog.nl [firebird-support]
ae sind gleich ö und oe sind gleich ü und ue sind gleich ß und ss sind gleich If you do want to treat them as different letters, you need a German collation that does just that. However, this collation will not work correctly with words in some other languages containing ä, ö and ü. Cheers, Paul Vinkenoog

Re: [firebird-support] Select Distinct Column Pairs

2014-03-30 Thread Paul Vinkenoog
, col2 from table HTH, Paul Vinkenoog

Re: [firebird-support] Re: nbackup strategy advice

2014-03-16 Thread Paul Vinkenoog
to do is determine the most recent backup before the chosen point in time. If that is a level N, you need N+1 files for the restore (levels 0-N, each one being the most recent file of that level before time 'T'). Cheers, Paul Vinkenoog

Re: [firebird-support] Re: nbackup strategy advice

2014-03-16 Thread Paul Vinkenoog
on the situation. Kind regards, Paul Vinkenoog

Re: [firebird-support] nbackup strategy advice

2014-03-15 Thread Paul Vinkenoog
. Hope this helps, Paul Vinkenoog

Re: [firebird-support] Basic sql alter table commands

2014-02-22 Thread Paul Vinkenoog
:: ALTER TABLE. That's the basis. The document Thomas pointed you to contains the updates since Firebird was forked from the IB sources. Good luck, Paul Vinkenoog

Re: [firebird-support] OT: Vote for Firebird as Database of the Year 2013 at LinuxQuestions

2014-02-05 Thread Paul Vinkenoog
in the past, but maybe that's just me: back then I had much more time, so I contributed more to Firebird, followed all the newsgroups, etc. Cheers, Paul Vinkenoog

Re: [firebird-support] Confused about delta files [SOLVED]

2014-01-20 Thread Paul Vinkenoog
and up you can do a full shutdown, if necessary in combination with -force. Paul Vinkenoog

Re: [firebird-support] Confused about delta files [SOLVED]

2014-01-17 Thread Paul Vinkenoog
, simply because this is *always* safe. Paul Vinkenoog

Re: [firebird-support] Confused about delta files [SOLVED]

2014-01-17 Thread Paul Vinkenoog
as well. You mean the FishBowl docs? Or the Firebird docs? BTW, this nbackup scheme you used: did it come with Fishbowl or did you set it up yourself? Paul Vinkenoog

Re: [firebird-support] Confused about delta files [SOLVED]

2014-01-17 Thread Paul Vinkenoog
would be to always use gbak? If in any doubt, use gbak. But as you can tell from Sean's post, there are situations where a straight file copy/move is just as safe. Just make sure you know what you are doing. Cheers, Paul Vinkenoog

Re: [firebird-support] Confused about delta files [SOLVED]

2014-01-16 Thread Paul Vinkenoog
to propose changes to a manual, the preferred way is to submit them to the firebird-docs list (to subscribe, mail to firebird-docs-requ...@lists.sourceforge.net) People who write or update documentation regularly can get CVS access. Kind regards, Paul Vinkenoog

Re: [firebird-support] Multiple Embedded Connections

2014-01-16 Thread Paul Vinkenoog
Classic or SuperClassic server at the same time. Consult the Firebird 2.5 Release Notes for full details. Cheers, Paul Vinkenoog

Re: [firebird-support] Multiple Embedded Connections

2014-01-16 Thread Paul Vinkenoog
Notes for full details. Yes - but where is this global lock table? It doesn't tell me if it's a file somewhere or in the memory of the first server loaded? Iirc, it's a lock file in ProgramData\Firebird. Paul Vinkenoog

Re: [firebird-support] Confused about delta files [SOLVED]

2014-01-16 Thread Paul Vinkenoog
absolutely no other option. In the situation you described, the logical thing to do would have been ALTER DATABASE END BACKUP (or nbackup -N) on the original machine (once you found out the right credentials, which I believe you did). Cheers, Paul Vinkenoog

Re: [firebird-support] nbackup questions

2014-01-15 Thread Paul Vinkenoog
? After all, *someone* should know the SYSDBA password, shouldn't they? And how about the scripts that executed nbackup until they went broken last May? Do you have read access to them? What authentication method did they use? And if you can't access those scripts, who can? Kind regards, Paul

Re: [firebird-support] RE: nbackup questions

2014-01-15 Thread Paul Vinkenoog
that the system's Scheduler function, without any warning or errors, stopped making these nbackups last May. Cheers, Paul Vinkenoog

Re: [firebird-support] nbackup questions

2014-01-15 Thread Paul Vinkenoog
SYSDBA password. Kind regards, Paul Vinkenoog

Re: [firebird-support] nbackup questions

2014-01-15 Thread Paul Vinkenoog
, straight file copies are *guaranteed* not to work. Cheers, Paul Vinkenoog

Re: [firebird-support] Help with a query

2013-12-20 Thread Paul Vinkenoog
a where a.fk = b.target) Kind regards, Paul Vinkenoog ++ Visit http://www.firebirdsql.org and click the Resources item on the main (top) menu. Try Knowledgebase and FAQ links ! Also search

Re: [firebird-support] Number list without table

2013-07-25 Thread Paul Vinkenoog
that, with the number of rows as a parameter. Or use EXECUTE BLOCK. Cheers, Paul Vinkenoog

Re: [firebird-support] Primary Key x Unique Key

2013-07-25 Thread Paul Vinkenoog
the PRIMARY KEY or UNIQUE. Kind regards, Paul Vinkenoog

Re: [firebird-support] Primary Key x Unique Key

2013-07-25 Thread Paul Vinkenoog
the PRIMARY KEY or UNIQUE. Notice that since Firebird 1.5, a unique key constraint does allow multiple null instances in the column. http://www.firebirdsql.org/file/documentation/reference_manuals/reference_material/html/langrefupd25-ddl-table.html#langrefupd25-ct-unique-keys Cheers, Paul

Re: AW: [firebird-support] NOT in Firebird

2013-07-04 Thread Paul Vinkenoog
Olaf wrote: great, exactly what I was looking for. Only 1 and 0 is possible. Then you can also do Var2 = 1 - Var1 The outcome is the same, but perhaps this is more obvious than bitwise XORing with 1. And it might execute a wee little faster. Cheers, Paul Vinkenoog

Re: [firebird-support] RDB$ADMIN and Role Revocation

2013-02-07 Thread Paul Vinkenoog
. Firebird 2.5.2 - this is not the case. I get an exception unsuccessful metadata update SYSDBA is not grantor of Role on MANAGER to 0S0ASDFASDF. You have to use GRANTED BY here: revoke manager from 0S0ASDFASDF granted by rdb$admin Paul Vinkenoog

Re: [firebird-support] RDB$ADMIN and Role Revocation

2013-02-07 Thread Paul Vinkenoog
with a searched delete statement on RDB$USER_PRIVILEGES. Which is a hack of course, like any direct manipulation of metadata. It would be better if this were possible in SQL, e.g. by implementing CASCADE for REVOKE statements (like PostgreSQL has done). Cheers, Paul Vinkenoog

Re: [firebird-support] Script with 'Drop' in it

2013-02-07 Thread Paul Vinkenoog
, etc. in a script without generating an error of the object isn't found? In a pure SQL script, I wouldn't know. But your application could check if the UDF name exists in RDB$FUNCTIONS and if so, execute DROP EXTERNAL FUNCTION. Cheers, Paul Vinkenoog

Re: [firebird-support] Re: INSERT ... RETURNING and updatable view

2013-02-04 Thread Paul Vinkenoog
that in the tracker for the doc subproject. Paul Vinkenoog

Re: [firebird-support] Re: server version

2013-02-04 Thread Paul Vinkenoog
without opening your eyes. You could have someone whisper it in your ear ;-) Anyway, you can get that information from the Services Manager without opening a _database_ connection. With JDBC it turns out to be not that simple, but Mark Rotteveel posted a solution in Firebird-Java. Cheers, Paul

Re: [firebird-support] Re: server version

2013-02-03 Thread Paul Vinkenoog
it for JDBC). Cheers, Paul Vinkenoog

Re: [firebird-support] server version

2013-02-02 Thread Paul Vinkenoog
or higher on the client machine. Hope this helps, Paul Vinkenoog

Re: [firebird-support] I need help-Syntax error - ;

2012-08-20 Thread Paul Vinkenoog
a start! ;-) HTH, Paul Vinkenoog

Re: [firebird-support] Re: expression evaluation not supported

2012-08-18 Thread Paul Vinkenoog
/reference_manuals/reference_material/html/langrefupd25-intfunc-datediff.html Cheers, Paul Vinkenoog

Re: [firebird-support] Multiple rows in a EXECUTE PROCEDURE

2012-08-18 Thread Paul Vinkenoog
or with a program the prior line show me just one row. Why that? And how can I get all the rows? Since this is a selectable stored procedure, you should retrieve its output (a dataset) like this: select identi, name from test HTH, Paul Vinkenoog

Re: [firebird-support] Help required

2012-08-01 Thread Paul Vinkenoog
MySQL supports (var)chars up to 64K. Cheers, Paul Vinkenoog

Re: [firebird-support] Perl, Firebird, and empty Where clause

2012-07-19 Thread Paul Vinkenoog
to the existing clause). Good luck, Paul Vinkenoog

Re: [firebird-support] Re: How to insert only if a matching row does not exist?

2011-10-20 Thread Paul Vinkenoog
Hi Ed, merge into emp using (select 'mango' fruits from rdb$database) src on emp.fruits = src.fruits when not matched then insert (fruits) values ('mango') Nice trick! That seems to work. Just realized you can make it even easier: merge into emp using

Re: [firebird-support] Table alias with AS in SELECT statement supported?

2011-10-18 Thread Paul Vinkenoog
;-) Frankly, I never noticed that the optional [AS] for table aliases was missing from the IB6 docs. Now that I know, I'll mention it in the next revision of the LangRef Update. Kind regards, Paul Vinkenoog