Ok.. Bug #2.. (yes, I'm getting a bit cranky!).. The "copy_if_not_empty()" routine is whacking my username (and it would my password if it was also set). In my case, the routine gets the following args :
copy_if_not_empty (to=0x7f7f41b0 "rflower", max_length=64, from=0x7f7f0980 "", length=-3) at connect.c:111 (gdb) print to $7 = 0x7f7f41b0 "rflower" (gdb) next 113 if (length == SQL_NTS) (gdb) next 114 length=max_length-1; (gdb) next 115 strmake(to,from,length); (gdb) next 117 } (gdb) print to $8 = 0x7f7f41b0 "" For now, I'm just going to comment out the calls to this function.. Obviously something is just plain wrong here.. Just for reference, here's the call stack : (gdb) where #0 SQLConnect (hdbc=0x4000b8c8 "@", szDSN=0x7f7f3000 "DEMO", cbDSN=-3, szUID=0x7f7f0980 "", cbUID=-3, szAuthStr=0x7f7f0ab0 "", cbAuthStr=-3) at connect.c:200 #1 0x7adff730 in SQLConnect (connection_handle=0x40005420 "", server_name=0x7f7f0850 "DEMO", name_length1=-3, user_name=0x7f7f0980 "", name_length2=-3, authentication=0x7f7f0ab0 "", name_length3=-3) at SQLConnect.c:2699 #2 0x385c in OpenDatabase (phEnv=0x4000176c, phDbc=0x40001768, szDSN=0x7f7f0850 "DEMO", szUID=0x7f7f0980 "", szPWD=0x7f7f0ab0 "") at isql.c:228 #3 0x322c in main (argc=3, argv=0x7f7f069c) at isql.c:93 --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php