Explorar o código

Querying world table rather than foos

Patrick Falls %!s(int64=12) %!d(string=hai) anos
pai
achega
6d7444a938
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
         });