|
[
Permalink
| « Hide
]
Dmitry Yemanov added a comment - 04/Dec/08 07:52 AM
What is your connection charset used?
Firebird version ?
Platform ? tool ? because under FB2.1 I can't reproduce it (using isql and edit, so vi under MacOsx) SQL> show trigger TESTING_I; Triggers on Table TESTING: TESTING_I, Sequence: 0, Type: BEFORE INSERT, Active AS BEGIN NEW."CÓDIGO" = 1; END +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ISQL Version: WI-V2.1.1.17910 Firebird 2.1
Server version: Firebird/x86/Windows NT (access method), version "WI-V2.1.0.17798 Firebird 2.1" Firebird/x86/Windows NT (remote server), version "WI-V2.1.0.17798 Firebird 2.1/tcp (phobos)/P11" Firebird/x86/Windows NT (remote interface), version "WI-V2.1.1.17910 Firebird 2.1/tcp (bacuz)/P11" on disk structure version 11.1 ...using IBOConsole or an ODBC driver and any client aplicattion... The problem is related to the tool you are using
I tested again under Win32 isql edit; type in the editor : SET NAMES ISO8859_1; RECREATE TABLE TESTING ( "CÓDIGO" INTEGER, "àéèù" INTEGER ); COMMIT; SET TERM ^; CREATE TRIGGER TESTING_I FOR TESTING ACTIVE BEFORE INSERT POSITION 0 AS BEGIN NEW."CÓDIGO" = 1; NEW."àéèù" = 1; END^ SET TERM ;^ COMMIT; save the file, quit the editor no problem table and trigger are there. Philippe, MacOSX build should have a problem, because there is a problem and that test case doesn't work in Windows.
hum, see my other post (test under Vista 32 Firebird 2.1.1)
I have to say that with Databaseworkbench the bug is there, but not with isql and notepad It doesn't work in isql either. If it's working for you, I believe you are not using a connection charset.
Adriano read what I posted :
>isql >edit; >type in the editor : >SET NAMES ISO8859_1; isn't using a charset ? > isn't using a charset ?
If it's just before RECREATE TABLE, no. Because SET NAMES should be *before* CONNECT or CREATE DATABASE. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||