Comments (7)
There is my schema:
CREATE TABLE IF NOT EXISTS `tab` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`a` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
`b` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`c` varchar(36) COLLATE utf8_unicode_ci NOT NULL,
`d` varchar(12) COLLATE utf8_unicode_ci NOT NULL,
`e` varchar(12) COLLATE utf8_unicode_ci NOT NULL,
`f` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
`g` varchar(12) COLLATE utf8_unicode_ci NOT NULL,
`h` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`i` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`j` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`k` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`l` tinyint(1) NOT NULL COMMENT 'ffff',
`m` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `analyze` (`f`,`timestamp`),
KEY `independency` (`f`(4)),
KEY `f` (`group_id`),
KEY `guest_service` (`a`,`c`(8),`f`(4))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
and there is the sql:
SELECT `c`, `k` FROM `tab` WHERE TIME_TO_SEC(TIMEDIFF(NOW(), `k`)) > 70 AND `b` = BINARY "abcdef" AND `c` = "L3lqVaqXbaJb9TFHH75B"
from node-mysql2.
thanks, I'll try to reproduce
from node-mysql2.
Are you sure there is no typo here:
pool.getConnection(function(err, connection){
if ( err ) {
log(3, '[Pool][getConnection][Error] sql: ' + sql + ' err: ' + err);
connection.release();
selectCb(err);
return;
}
// you are getting "connection" from pool but using db
db.query(sql, function dbQuery(err, rows, fields){
from node-mysql2.
Yes. It's connection. They were 'db' in my original code. I thought you might use 'connection' much well so I change that. I miss.
from node-mysql2.
could be difficult to debug, it works just fine in simple example. Are you getting any errors before there is no call to callback?
from node-mysql2.
There are no error or unexpection caught even from kernel or other modules.
But we try [email protected] with the same code it work fine til now.
The NodeJS version is v0.10.21. Hoping it will be helpful.
from node-mysql2.
Could you try again from master? #70 should make pool behaviour consistent with node-mysql
from node-mysql2.
Related Issues (20)
- HANDSHAKE_SSL_ERROR with RDS and 3.9.3+ HOT 14
- Can't create more than max prepared stmtount statements(current value: 16382) HOT 4
- Release 3.9.4 breaks code that depended on .hasOwnProperty() HOT 3
- got warning when host is an IP address HOT 3
- Transaction issue in my code. Please Help!
- read ECONNRESET after upgrading HOT 11
- typeCast: false causes out of bounds reads to packet when result set contains NULL values and binary protocol is used.
- README documentation HOT 1
- True negative: ssl-mode query params in connectionString considered as invalid HOT 1
- TypeError: LRU is not a constructor HOT 4
- PoolConnection.execute() retrun object v3.9.7 HOT 6
- Deadlock found when trying to get lock HOT 3
- [createConnection] Can't add new command when connection is in closed state HOT 8
- Sporadic read ETIMEDOUT error HOT 9
- Incorrect typings lead to pool.destroy is not a function HOT 2
- Invalid ssl option but still DB connection working fine HOT 2
- Access Denied after database restart (but granted after login via CLI) HOT 23
- Importing mysql2 causes source maps not working in project bundled with webpack HOT 7
- DELIMITER causes syntax error HOT 1
- Building query for ORDER BY ? DESC/ASC doesn't seem to use the values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-mysql2.