From 9bfca6566b0f22899201d065bfd03dd43735c44b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 11 Mar 2024 15:49:33 +0800 Subject: [PATCH] bugfix --- sqlor/mysqlor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlor/mysqlor.py b/sqlor/mysqlor.py index 53bd9d5..c864602 100755 --- a/sqlor/mysqlor.py +++ b/sqlor/mysqlor.py @@ -72,7 +72,7 @@ class MySqlor(SQLor): return tuple(d) def pagingSQLmodel(self): - return """select * row_number() over(order by $[sort]$) as row_num_ from (%s) A limit $[from_line]$, $[rows]$""" + return """select *, row_number() over(order by $[sort]$) as row_num_ from (%s) A limit $[from_line]$, $[rows]$""" return """select * from (%s) A order by $[sort]$ limit $[from_line]$,$[rows]$"""