Begin main content

Sybase, it's Californian for ****

In my del.icio.us inbox I found a quite useful sybase-specific blog:

http://sybasease.blogspot.com/

It contains actually useful info and discussion (unlike 99% of the other Sybase sites on the net). Unsurprisingly, the first page already contains info on two blatant mysql-esque violations of the ANSI standard that make your code more dangerous and less portable:

http://sybasease.blogspot.com/2005/09/string-truncation.html

Yes, Sybase silently truncates if you try to insert a string that is too long for the field. Handy.

http://sybasease.blogspot.com/2005/05/nulls-in-sybase-ase.html

A NULL is a NULL, unless it's a Sybase NULL (or a mysql NULL for that matter). NULL = NULL should be false right? Well in a Sybase where clause, it's true. As if that weren't bad enough, Sybase is not even self-consistent: In join clauses NULL = NULL will not match ie. is false. GAH!

In both cases there are runtime options you can specify to trigger more ANSI-ish behaviour. If I was designing coding standards for a team I would enforce these settings in all code at the point of instantiating a db connection.

12:48 AM, 27 Mar 2006 by Mark Aufflick Permalink | Short Link | Comments (0)

XML

Blog Categories

software (39)
..cocoa (21)
  ..heads up 'tunes (5)
..ruby (6)
..lisp (3)
..perl (4)
..openacs (1)
mac (20)
embedded (2)
..microprocessor (2)
  ..avr (1)
electronics (3)
design (1)
photography (25)
..black and white (6)
..A day in Sydney (18)
..The Daily Shoot (6)
food (2)
Book Review (2)

Notifications

Icon of Envelope Request notifications

Syndication Feed

XML

Recent Comments

  1. Unregistered Visitor: An other Script
  2. Unregistered Visitor: A message in there?
  3. Unregistered Visitor: using Amazon S3
  4. Unregistered Visitor: Thank you ! Thank you ! Thank you !
  5. Unregistered Visitor: Umbrello on leopard
  6. Unregistered Visitor: Script gor generate for library
  7. Unregistered Visitor: Similar but different
  8. Unregistered Visitor: Thanks for fixing my problem!
  9. Unregistered Visitor: Pop up once the category is been defined
  10. Unregistered Visitor: smal amendment