1. carl douglas
  2. mysql-client.egg

Commits

carl douglas  committed 1c7461a

change error output to stderr

  • Participants
  • Parent commits 8ce745d
  • Branches master

Comments (0)

Files changed (1)

File mysql.scm

View file
   int rc = mysql_query(conn, sql);
 
   if (mysql_errno(conn) != 0) {
-    printf ("MYSQL ERROR: %d %s\n", 
+    fprintf (stderr, "MYSQL ERROR: %d %s\n", 
             mysql_errno(conn), mysql_error(conn));
   }
 
   mysql_options(conn, MYSQL_READ_DEFAULT_GROUP, "client");
   mysql_real_connect(conn, host, user, pass, database, 0, NULL, 0);
   if (mysql_errno(conn) != 0) {
-    printf ("MYSQL ERROR: %d %s\n", 
+    fprintf (stderr, "MYSQL ERROR: %d %s\n", 
             mysql_errno(conn), mysql_error(conn));
   }
   return(conn);