Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 0244cc37
authored
Jul 11, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting
1 parent
4b3f574c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
lib/dialects/mysql/query-generator.js
lib/dialects/mysql/query-generator.js
View file @
0244cc3
...
@@ -221,7 +221,7 @@ module.exports = (function() {
...
@@ -221,7 +221,7 @@ module.exports = (function() {
if
(
options
.
offset
&&
!
options
.
limit
)
{
if
(
options
.
offset
&&
!
options
.
limit
)
{
/*
/*
* If no limit is defined, our best bet is to use the max number of rows in a table. From the MySQL docs:
* If no limit is defined, our best bet is to use the max number of rows in a table. From the MySQL docs:
* There is a limit of 2^32 (~4.295E+09) rows in a MyISAM table. If you build MySQL with the --with-big-tables option,
* There is a limit of 2^32 (~4.295E+09) rows in a MyISAM table. If you build MySQL with the --with-big-tables option,
* the row limitation is increased to (2^32)^2 (1.844E+19) rows.
* the row limitation is increased to (2^32)^2 (1.844E+19) rows.
*/
*/
query
+=
" LIMIT "
+
options
.
offset
+
", "
+
18440000000000000000
;
query
+=
" LIMIT "
+
options
.
offset
+
", "
+
18440000000000000000
;
...
@@ -536,7 +536,6 @@ module.exports = (function() {
...
@@ -536,7 +536,6 @@ module.exports = (function() {
if
(
dataType
.
references
)
{
if
(
dataType
.
references
)
{
template
+=
" REFERENCES "
+
this
.
quoteIdentifier
(
dataType
.
references
)
template
+=
" REFERENCES "
+
this
.
quoteIdentifier
(
dataType
.
references
)
if
(
dataType
.
referencesKey
)
{
if
(
dataType
.
referencesKey
)
{
template
+=
" ("
+
this
.
quoteIdentifier
(
dataType
.
referencesKey
)
+
")"
template
+=
" ("
+
this
.
quoteIdentifier
(
dataType
.
referencesKey
)
+
")"
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment