summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
authorunknown <paul@ice.snake.net>2004-09-11 14:38:23 -0500
committerunknown <paul@ice.snake.net>2004-09-11 14:38:23 -0500
commit4356baa0ba79c70c40af1dca6d4da0ac7917a19f (patch)
tree0627eb66a764b131e83d0555b84d3b56d946b523 /libmysql/libmysql.c
parentdffba0713f03575e996a75d5da0fb156c4f0e1dc (diff)
downloadmariadb-git-4356baa0ba79c70c40af1dca6d4da0ac7917a19f.tar.gz
libmysql.c:
Fix typos noticed while poking around in file. libmysql/libmysql.c: Fix typos noticed while poking around in file.
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index f9a6202b761..6601d3e4ad7 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -1860,14 +1860,14 @@ MYSQL_STMT * STDCALL mysql_prepare(MYSQL *mysql, const char *query,
a server-side prepared statement. Memory for this structure (~700
bytes) is allocated using 'malloc'. Once created, the handle can be
reused many times. Created statement handle is bound to connection
- handle provided to this call: it's lifetime is limited by lifetime
+ handle provided to this call: its lifetime is limited by lifetime
of connection.
'mysql_stmt_init()' is a pure local call, server side structure is
created only in mysql_stmt_prepare.
Next steps you may want to make:
- set a statement attribute (mysql_stmt_attr_set()),
- prepare statement handle with a query (mysql_stmt_prepare()),
- - close statement handle and free it's memory (mysql_stmt_close()),
+ - close statement handle and free its memory (mysql_stmt_close()),
- reset statement with mysql_stmt_reset() (a no-op which will
just return).
Behaviour of the rest of API calls on this statement is not defined yet
@@ -2592,7 +2592,7 @@ stmt_read_row_no_data(MYSQL_STMT *stmt __attribute__((unused)),
mysql_stmt_attr_get()
mysql_stmt_attr_set()
- attr_type statemenet attribute
+ attr_type statement attribute
value casted to const void * pointer to value.
RETURN VALUE
@@ -2688,7 +2688,7 @@ int STDCALL mysql_stmt_execute(MYSQL_STMT *stmt)
mysql_stmt_free_result(stmt);
/*
No need to check for stmt->state: if the statement wasn't
- prepared we'll get 'unknown statemenet handler' error from server.
+ prepared we'll get 'unknown statement handler' error from server.
*/
if (mysql->methods->stmt_execute(stmt))
DBUG_RETURN(1);
@@ -2813,7 +2813,7 @@ static my_bool int_is_null_false= 0;
By properly initializing bind array you can bind virtually any
C language type to statement's placeholders:
First, it's strongly recommended to always zero-initialize entire
- bind structure before setting it's members. This will both shorten
+ bind structure before setting its members. This will both shorten
your application code and make it robust to future extensions of
MYSQL_BIND structure.
Then you need to assign typecode of your application buffer to