Benny Amorsen wrote: > >>>>> "TL" == Tom Lane <[EMAIL PROTECTED]> writes: > > TL> Anyone against making it case-insensitive, speak now or hold your > TL> peace. > > SI-units are inherently case-sensitive. The obvious example is that > now you will allow people to specify an amount in millibytes, while > interpreting it in megabytes.
And as Peter points out, there may be a desire to support SI-type units in other parts of the database at some time in the future. It seems like a questionable idea to break with convention just for ease of use. > You are trying to interpret valid input as misspellings based on > context, and then you silently guess at what the user really meant. > That's MySQL behaviour! I agree. But perhaps the solution instead of failing is to throw a warning to the effect of "Not to be pedantic, but you said mb and millibits as a unit doesn't make sense in this context. Assuming you meant MB (MegaBits)." and then start up. Generally I'm against guessing what the user really wants, but in this case, it seems pretty difficult to guess wrong. But either way I'm always dead set against _silently_ guessing. Andrew ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate