Correcao no teste
Atualizacao da versao: 2.0 beta!
This commit is contained in:
parent
c79cc2cb75
commit
a91bcc40cf
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
VERSION= 2.0a
|
VERSION= 2.0b
|
||||||
|
|
||||||
ODBC_OBJ= ls_odbc.o
|
ODBC_OBJ= ls_odbc.o
|
||||||
ODBC_LIB= libluasqlodbc.$(VERSION).a
|
ODBC_LIB= libluasqlodbc.$(VERSION).a
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<! See Copyright Notice in license.html>
|
<! See Copyright Notice in license.html>
|
||||||
<html>
|
<html>
|
||||||
<!$Id: index.html,v 1.15 2003/12/02 15:26:14 tomas Exp $>
|
<!$Id: index.html,v 1.16 2003/12/03 14:41:21 tomas Exp $>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
@ -78,7 +78,7 @@ LuaSQL is <a href="license.html">free software</a>.
|
|||||||
<a name=version>
|
<a name=version>
|
||||||
<h2>Current version</h2>
|
<h2>Current version</h2>
|
||||||
<p>
|
<p>
|
||||||
LuaSQL version 2.0 alpha (for Lua 5.0) is now available for
|
LuaSQL version 2.0 beta (for Lua 5.0) is now available for
|
||||||
<a href="#download">download</a>!
|
<a href="#download">download</a>!
|
||||||
The PostgreSQL driver
|
The PostgreSQL driver
|
||||||
has been tested on Linux and MacOS X
|
has been tested on Linux and MacOS X
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<! See Copyright Notice in license.html>
|
<! See Copyright Notice in license.html>
|
||||||
<html>
|
<html>
|
||||||
<!$Id: manual.html,v 1.14 2003/12/01 16:08:38 tomas Exp $>
|
<!$Id: manual.html,v 1.15 2003/12/03 14:41:21 tomas Exp $>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
@ -192,7 +192,7 @@ This allows the use of a unique table for many fetches which
|
|||||||
can improve the overall performance.<br>
|
can improve the overall performance.<br>
|
||||||
There is no guarantee about the types of the results
|
There is no guarantee about the types of the results
|
||||||
-- they can be converted to adequate Lua types by the driver or not.
|
-- they can be converted to adequate Lua types by the driver or not.
|
||||||
<i>In the current implementation (2.0a),
|
<i>In the current implementation (2.0b),
|
||||||
the PostgreSQL and MySQL drivers returns all values as strings
|
the PostgreSQL and MySQL drivers returns all values as strings
|
||||||
while the ODBC and Oracle drivers converts them to Lua types</i>.<br>
|
while the ODBC and Oracle drivers converts them to Lua types</i>.<br>
|
||||||
Returns: data, as above, or <tt>nil</tt> if there are no more rows.
|
Returns: data, as above, or <tt>nil</tt> if there are no more rows.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/local/bin/lua
|
#!/usr/local/bin/lua
|
||||||
-- See Copyright Notice in license.html
|
-- See Copyright Notice in license.html
|
||||||
|
|
||||||
TOTAL_FIELDS = 400
|
TOTAL_FIELDS = 1600
|
||||||
TOTAL_ROWS = 40
|
TOTAL_ROWS = 40
|
||||||
|
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
@ -80,15 +80,15 @@ end
|
|||||||
-- Build SQL command to create the test table.
|
-- Build SQL command to create the test table.
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
function define_table (n)
|
function define_table (n)
|
||||||
local s = "create table t ("
|
local s = "create table t ("
|
||||||
for i = 1, n do
|
for i = 1, n do
|
||||||
s = s.."f"..i.." varchar(30), "
|
s = s.."f"..i.." varchar(30), "
|
||||||
end
|
end
|
||||||
s = string.sub (s, 1, -3)
|
s = string.sub (s, 1, -3)
|
||||||
if driver == "mysql" then
|
if driver == "mysql" then
|
||||||
return s..") TYPE = InnoDB;"
|
return s..") TYPE = InnoDB;"
|
||||||
else
|
else
|
||||||
return s
|
return s..")"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user