It just seems weird to do a switch on db type. Using UPPER in both cases will work, so why not keep it simple?