Use 'default' instead of '' as default user name and password

hswong3i - November 19, 2008 - 19:02
Project:Drupal
Version:7.x-dev
Component:user.module
Category:feature request
Priority:normal
Assigned:hswong3i
Status:won't fix
Description

For D7 we are now using '' (empty string) as default user name and password. This issue hope to redefine these empty string as 'default'.

As mentioned in #334687: [DBTNG + XDB] NOT NULL fields using a DEFAULT '' clause , '' (empty string) is not always functioning for all database engine, e.g. Oracle will translate empty string as NULL automatically, which is not ANSI standard. It is also not too meaningful if using empty string as undefined default value. Use 'default' seems to be a possible replacement.

AttachmentSizeStatusTest resultOperations
username-userpass-default-1227121232.patch4.36 KBIdleUnable to apply patch username-userpass-default-1227121232.patchView details | Re-test

#1

Damien Tournoud - November 19, 2008 - 19:15
Status:needs review» won't fix

As per chx' analysis in #334687: [DBTNG + XDB] NOT NULL fields using a DEFAULT '' clause , which I totally agree with.

#2

hswong3i - November 19, 2008 - 20:40
Status:won't fix» needs review

I just give a reply for original issue (http://drupal.org/node/334687#comment-1116672) and hopefully may trigger more open end discussion.

#3

catch - November 19, 2008 - 21:18
Status:needs review» won't fix

Since it can be implemented in the Oracle driver, and is a bug specific to Oracle, then it should be done there.

 
 

Drupal is a registered trademark of Dries Buytaert.