Pequenas correcoes no ingles.
This commit is contained in:
parent
583786d773
commit
9c5f55af5d
29
index.html
29
index.html
@ -32,8 +32,8 @@ programming language
|
|||||||
<a href=#installation>installation</a> ·
|
<a href=#installation>installation</a> ·
|
||||||
<a href="manual.html">manual</a> ·
|
<a href="manual.html">manual</a> ·
|
||||||
<a href="license.html">license</a> ·
|
<a href="license.html">license</a> ·
|
||||||
<a href="#hist">history</a> ·
|
<a href="#credits">credits</a> ·
|
||||||
<a href="#contact">contact</a>
|
<a href="#contact">contact us</a>
|
||||||
</small></center>
|
</small></center>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
@ -59,8 +59,8 @@ programming language
|
|||||||
<li> <a href="manual.html#examples">Examples</a>
|
<li> <a href="manual.html#examples">Examples</a>
|
||||||
</ul>
|
</ul>
|
||||||
<li> <a href="license.html">Copyright & License</a>
|
<li> <a href="license.html">Copyright & License</a>
|
||||||
<li> <a href=#hist>History</a>
|
<li> <a href="#credits">Credits</a>
|
||||||
<li> <a href="#contact">Contact</a>
|
<li> <a href="#contact">Contact us</a>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@ -134,10 +134,10 @@ Version 2.0 has some design modifications and implementation improvements
|
|||||||
LuaSQL is distributed as a set of C source files and a Lua script that
|
LuaSQL is distributed as a set of C source files and a Lua script that
|
||||||
loads the dynamic library (if the library is not statically linked to
|
loads the dynamic library (if the library is not statically linked to
|
||||||
the application).
|
the application).
|
||||||
Each driver should be compiled together with luasql.c file (it's so small
|
Each driver should be compiled together with luasql.c file (it is so small
|
||||||
that we don't make another library of it) to generate a library.
|
that we don't make another library of it) to generate a library.
|
||||||
This library should be linked to the application (the initialization
|
This library should be linked to the application (the initialization
|
||||||
function is <tt>luasql_libopen_<i>drivername</i></tt> and it's a Lua
|
function is <tt>luaopen_luasql_<i>drivername</i></tt> and it is a Lua
|
||||||
open-library compatible function)
|
open-library compatible function)
|
||||||
or dynamically loaded.
|
or dynamically loaded.
|
||||||
In this case, LuaSQL provide a Lua script template that must be
|
In this case, LuaSQL provide a Lua script template that must be
|
||||||
@ -148,13 +148,13 @@ The distribution contains a Makefile that has lines to do this job,
|
|||||||
using <tt>sed</tt>, according to each driver and platform.
|
using <tt>sed</tt>, according to each driver and platform.
|
||||||
|
|
||||||
|
|
||||||
<a name=hist>
|
<a name="credits">
|
||||||
<h2>History</h2>
|
<h2>Credits</h2>
|
||||||
|
|
||||||
<h4>LuaSQL 2.0</h4>
|
<h4>LuaSQL 2.0</h4>
|
||||||
<p>
|
<p>
|
||||||
Version 2.0 was redesigned by Roberto Ierusalimschy, André Carregal
|
Version 2.0 was redesigned by Roberto Ierusalimschy, André Carregal
|
||||||
and Tomás Guisasola behind the Kepler Project.
|
and Tomás Guisasola as part of the Kepler Project.
|
||||||
The implementation is compatible with Lua 5.0 and was coded by
|
The implementation is compatible with Lua 5.0 and was coded by
|
||||||
Tomás Guisasola, Eduardo Quintão and Leonardo Godinho.
|
Tomás Guisasola, Eduardo Quintão and Leonardo Godinho.
|
||||||
|
|
||||||
@ -171,12 +171,11 @@ LuaSQL development was sponsored by
|
|||||||
|
|
||||||
|
|
||||||
<a name="contact"></a>
|
<a name="contact"></a>
|
||||||
<h2>Contact</h2>
|
<h2>Contact us</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
For more information please
|
For more information please
|
||||||
<a href="mailto:tomas-NO-SPAM-THANKS@keplerproject.org">contact</a>
|
<a href="mailto:tomas-NO-SPAM-THANKS@keplerproject.org">contact us</a>.
|
||||||
us.
|
|
||||||
Comments are welcome!
|
Comments are welcome!
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@ -190,14 +189,14 @@ Comments are welcome!
|
|||||||
<a href=#installation>installation</a> ·
|
<a href=#installation>installation</a> ·
|
||||||
<a href="manual.html">manual</a> ·
|
<a href="manual.html">manual</a> ·
|
||||||
<a href="license.html">license</a> ·
|
<a href="license.html">license</a> ·
|
||||||
<a href="#hist">history</a> ·
|
<a href="#credits">credits</a> ·
|
||||||
<a href="#contact">contact</a>
|
<a href="#contact">contact us</a>
|
||||||
</small></center>
|
</small></center>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<small>
|
<small>
|
||||||
$Id: index.html,v 1.20 2004/01/12 10:43:26 tomas Exp $
|
$Id: index.html,v 1.21 2004/06/08 13:02:12 tomas Exp $
|
||||||
</small>
|
</small>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
TOTAL_ROWS = 200
|
TOTAL_ROWS = 200
|
||||||
|
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
-- checks for a value and throw an error if it's not the expected.
|
-- checks for a value and throw an error if it is invalid.
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
function assert2 (expected, value, msg)
|
function assert2 (expected, value, msg)
|
||||||
if not msg then
|
if not msg then
|
||||||
|
@ -5,7 +5,7 @@ TOTAL_FIELDS = 800
|
|||||||
TOTAL_ROWS = 40
|
TOTAL_ROWS = 40
|
||||||
|
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
-- checks for a value and throw an error if it's not the expected.
|
-- checks for a value and throw an error if it is invalid.
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
function assert2 (expected, value, msg)
|
function assert2 (expected, value, msg)
|
||||||
if not msg then
|
if not msg then
|
||||||
@ -58,7 +58,7 @@ function basic_test ()
|
|||||||
-- trying to connect with a closed environment.
|
-- trying to connect with a closed environment.
|
||||||
assert2 (false, pcall (ENV.connect, ENV, datasource, username, password),
|
assert2 (false, pcall (ENV.connect, ENV, datasource, username, password),
|
||||||
"error connecting with a closed environment")
|
"error connecting with a closed environment")
|
||||||
-- it's ok to close a closed object, but nil is returned instead of 1.
|
-- it is ok to close a closed object, but nil is returned instead of 1.
|
||||||
assert2 (false, ENV:close())
|
assert2 (false, ENV:close())
|
||||||
-- Reopen the environment.
|
-- Reopen the environment.
|
||||||
ENV = ENV_OK (luasql[driver] ())
|
ENV = ENV_OK (luasql[driver] ())
|
||||||
@ -70,7 +70,7 @@ function basic_test ()
|
|||||||
-- trying to execute a statement with a closed connection.
|
-- trying to execute a statement with a closed connection.
|
||||||
assert2 (false, pcall (conn.execute, conn, "create table x (c char)"),
|
assert2 (false, pcall (conn.execute, conn, "create table x (c char)"),
|
||||||
"error connecting with a closed environment")
|
"error connecting with a closed environment")
|
||||||
-- it's ok to close a closed object, but nil is returned instead of 1.
|
-- it is ok to close a closed object, but nil is returned instead of 1.
|
||||||
assert2 (false, conn:close())
|
assert2 (false, conn:close())
|
||||||
-- Check error situation.
|
-- Check error situation.
|
||||||
assert2 (nil, ENV:connect ("unknown-data-base"), "this should be an error")
|
assert2 (nil, ENV:connect ("unknown-data-base"), "this should be an error")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user