Correcao no teste

Atualizacao da versao: 2.0 beta!
This commit is contained in:
tomas 2003-12-03 14:41:21 +00:00
parent c79cc2cb75
commit a91bcc40cf
4 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
VERSION= 2.0a
VERSION= 2.0b
ODBC_OBJ= ls_odbc.o
ODBC_LIB= libluasqlodbc.$(VERSION).a

View File

@ -1,6 +1,6 @@
<! See Copyright Notice in license.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>
<style type="text/css">
@ -78,7 +78,7 @@ LuaSQL is <a href="license.html">free software</a>.
<a name=version>
<h2>Current version</h2>
<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>!
The PostgreSQL driver
has been tested on Linux and MacOS X

View File

@ -1,6 +1,6 @@
<! See Copyright Notice in license.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>
<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>
There is no guarantee about the types of the results
-- 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
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.

View File

@ -1,7 +1,7 @@
#!/usr/local/bin/lua
-- See Copyright Notice in license.html
TOTAL_FIELDS = 400
TOTAL_FIELDS = 1600
TOTAL_ROWS = 40
---------------------------------------------------------------------
@ -80,15 +80,15 @@ end
-- Build SQL command to create the test table.
---------------------------------------------------------------------
function define_table (n)
local s = "create table t ("
for i = 1, n do
s = s.."f"..i.." varchar(30), "
end
local s = "create table t ("
for i = 1, n do
s = s.."f"..i.." varchar(30), "
end
s = string.sub (s, 1, -3)
if driver == "mysql" then
return s..") TYPE = InnoDB;"
else
return s
return s..")"
end
end