home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.sybase
- Path: sparky!uunet!pipex!bnr.co.uk!bnrgate!nott!torn!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!julienas!genethon!stuart
- From: stuart@genethon.fr (Stuart Pook)
- Subject: patindex broken between 4.2 and 4.8
- Message-ID: <1993Jan28.154119@genethon.fr>
- Originator: stuart@genethon2.genethon.fr
- Keywords: patindex
- Sender: news@genethon.fr
- Nntp-Posting-Host: genethon2.genethon.fr
- Organization: Genethon -- Human Genome Research Centre
- Date: Thu, 28 Jan 1993 14:41:19 GMT
- Lines: 39
-
-
- Has anybody noticed that patindex has been broken
- between Sybase versions 4.2 and 4.8? The following
- scripts illustrate how patindex used to be correct
- (under 4.2) and how it now gives the wrong result.
-
- Does the same problem exist under 4.9?
-
- $ sql -SGENGDB
- 1> select @@version
- 2> go
-
- -----------------------------------------------------------------
- SQL Server/4.2/P/sun4/os4/EBF632/OPT/Tue Aug 27 11:58:42 PDT 1991
-
- (1 row affected)
- 1> select patindex("%[^0]%", "000")
- 2> go
-
- -----------
- 0
-
- (1 row affected)
-
- $ sql -SGENETHON
- 1> select @@version
- 2> go
-
- ---------------------------------------------------------------------
- SQL Server/4.8/P/Sun 4/SunOS 4.1.X/5/OPT/Fri Apr 24 10:15:10 PDT 1992
-
- (1 row affected)
- 1> select patindex("%[^0]%", "000")
- 2> go
-
- -----------
- 3
-
- (1 row affected)
-