Browse Source

Querying world table rather than foos

Patrick Falls 12 years ago
parent
commit
ef0bdc7979
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nodejs/hello.js

+ 1 - 1
nodejs/hello.js

@@ -154,7 +154,7 @@ http.createServer(function (req, res) {
     function mysqlQuery(callback) {
       pool.getConnection(function(err, connection) {
         if (err) callback(err);
-        connection.query("SELECT * FROM foos WHERE id = " + getRandomNumber(), function(err, rows) {
+        connection.query("SELECT * FROM world WHERE id = " + getRandomNumber(), function(err, rows) {
           callback(null, rows[0]);
           connection.end();
         });