Subject | Re: Alternative for UNIQUE constraint |
---|---|
Author | magic1278 |
Post date | 2009-03-28T11:59:18Z |
--- In firebird-support@yahoogroups.com, Helen Borrie
<helebor@...> wrote:
that return null/unknown).
type so that issue never came up. I guess I'm just too used to expecting
type-mismatch errors popping up that I probably wouldn't ever code a
CHAR/VARCHAR comparison.
put up earlier was what I thought was the minimal amount needed to
demonstrate what I wanted to do. Though the REFERENCE ... lines
themselves never caused a problem when I tested my example...
Anyway, I moved them out of the CREATE TABLE statements and put them
into separate ALTER TABLE ... ADD FOREIGN KEY ... statements. That's
what you meant by explicitly and not in the same transaction, right?
<helebor@...> wrote:
> At 05:19 PM 28/03/2009, you wrote:equivalence tests that return true or false (or bad equivalence tests
>
> "Look ups" is a client-side thing. In SQL, you're typically doing
that return null/unknown).
> -- SNIP --Ok, I understand now. I've always just compared stuff with the same data
> 'magic' <> 'magic----'
type so that issue never came up. I guess I'm just too used to expecting
type-mismatch errors popping up that I probably wouldn't ever code a
CHAR/VARCHAR comparison.
> It's wrong according to the LangRef, though.I see now. I just noticed I used domains in my actual code and what I
put up earlier was what I thought was the minimal amount needed to
demonstrate what I wanted to do. Though the REFERENCE ... lines
themselves never caused a problem when I tested my example...
Anyway, I moved them out of the CREATE TABLE statements and put them
into separate ALTER TABLE ... ADD FOREIGN KEY ... statements. That's
what you meant by explicitly and not in the same transaction, right?