Fix dumb message name; allow numbers and underscores in database names
[hcoop/domtool2.git] / src / dbms.sml
index 0b40b26..8c34f8b 100644 (file)
@@ -22,7 +22,7 @@ structure Dbms :> DBMS = struct
 
 open DataStructures
 
-val validDbname = CharVector.all Char.isAlpha
+val validDbname = CharVector.all (fn ch => Char.isAlphaNum ch orelse ch = #"_")
 
 type handler = {getpass : (unit -> Client.passwd_result) option,
                adduser : {user : string, passwd : string option} -> string option,