mysql 2.9.0-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/COPYING +56 -0
- data/COPYING.ja +51 -0
- data/History.txt +32 -0
- data/Manifest.txt +17 -0
- data/README.txt +25 -0
- data/Rakefile +22 -0
- data/ext/mysql_api/extconf.rb +93 -0
- data/ext/mysql_api/mysql.c +2288 -0
- data/extra/README.html +1108 -0
- data/extra/README_ja.html +1333 -0
- data/extra/tommy.css +134 -0
- data/lib/mysql.rb +9 -0
- data/lib/mysql/1.8/mysql_api.so +0 -0
- data/lib/mysql/1.9/mysql_api.so +0 -0
- data/lib/mysql/version.rb +6 -0
- data/tasks/gem.rake +24 -0
- data/tasks/native.rake +52 -0
- data/tasks/vendor_mysql.rake +42 -0
- data/test/test_mysql.rb +1492 -0
- metadata +160 -0
@@ -0,0 +1,1333 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<!-- $Id: README_ja.html 250 2010-02-11 10:42:54Z tommy $ -->
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="content-style-type" content="text/css">
|
6
|
+
<link rel=stylesheet type="text/css" href="tommy.css">
|
7
|
+
<link rev=made href="mailto:tommy@tmtm.org">
|
8
|
+
<title>MySQL/Ruby</title>
|
9
|
+
</head>
|
10
|
+
|
11
|
+
<body>
|
12
|
+
<h1>MySQL/Ruby</h1>
|
13
|
+
<p><a href="README.html">[English]</a></p>
|
14
|
+
<hr>
|
15
|
+
<p>
|
16
|
+
����� <a href="http://www.mysql.com">MySQL</a> �� Ruby API �Ǥ���MySQL �� C API �Ȥۤ�Ʊ���ε�ǽ������ޤ���
|
17
|
+
</p>
|
18
|
+
|
19
|
+
<h2>�����������</h2>
|
20
|
+
<ul>
|
21
|
+
<li><a href="http://rubyforge.org/frs/?group_id=4550">RubyForge</a>
|
22
|
+
<li><a href="http://tmtm.org/downloads/mysql/ruby/">tmtm.org</a>
|
23
|
+
</ul>
|
24
|
+
|
25
|
+
<h2>ɬ�פʤ��</h2>
|
26
|
+
<ul>
|
27
|
+
<li>MySQL 5.0.67
|
28
|
+
<li>Ruby 1.8.7, 1.9.1
|
29
|
+
</ul>
|
30
|
+
<p>
|
31
|
+
�����ʳ��Ǥ� make �Ǥ��뤫�⤷��ޤ�����ǧ���Ƥޤ���
|
32
|
+
</p>
|
33
|
+
|
34
|
+
<h2>�饤����</h2>
|
35
|
+
<p>
|
36
|
+
���Υץ������� <a href="http://www.ruby-lang.org/ja/LICENSE.txt">Ruby �饤����</a> �˽����ޤ���
|
37
|
+
</p>
|
38
|
+
|
39
|
+
<h2>���ȡ���</h2>
|
40
|
+
<p>
|
41
|
+
����¹Ԥ��Ƥ���������
|
42
|
+
</p>
|
43
|
+
<pre class="code">
|
44
|
+
% ruby extconf.rb
|
45
|
+
</pre>
|
46
|
+
<p>
|
47
|
+
�ޤ���
|
48
|
+
</p>
|
49
|
+
<pre class="code">
|
50
|
+
% ruby extconf.rb --with-mysql-dir=/usr/local/mysql
|
51
|
+
</pre>
|
52
|
+
<p>
|
53
|
+
�ޤ���
|
54
|
+
</p>
|
55
|
+
<pre clas="code">
|
56
|
+
% ruby extconf.rb --with-mysql-config
|
57
|
+
</pre>
|
58
|
+
<p>
|
59
|
+
���줫��
|
60
|
+
</p>
|
61
|
+
<pre>
|
62
|
+
% make
|
63
|
+
</pre>
|
64
|
+
<p>
|
65
|
+
extconf.rb �ˤϼ��Υ��ץ��������Ǥ��ޤ���
|
66
|
+
</p>
|
67
|
+
<dl>
|
68
|
+
<dt>--with-mysql-include=<i>dir</i>
|
69
|
+
<dd>
|
70
|
+
MySQL �Τإå��ե�����ξ��Ȥ��� /usr/local/include ������Υǥ��쥯�ȥ����ꤷ�ޤ���
|
71
|
+
|
72
|
+
<dt>--with-mysql-lib=<i>dir</i>
|
73
|
+
<dd>
|
74
|
+
MySQL �Υ饤�֥��ξ��Ȥ��� /usr/local/lib ������Υǥ��쥯�ȥ����ꤷ�ޤ���
|
75
|
+
|
76
|
+
<dt>--with-mysql-dir=<i>dir</i>
|
77
|
+
<dd>--with-mysql-include=<i>dir</i>/include, --with-mysql-lib=<i>dir</i>/lib ��Ʊ���Ǥ���
|
78
|
+
|
79
|
+
<dt>--with-mysql-config[=<i>/path/to/mysql_config</i>]
|
80
|
+
<dd>mysql_config ���ޥ�ɤη�̤��饳��ѥ���ѥ��������ޤ���
|
81
|
+
</dl>
|
82
|
+
<p>
|
83
|
+
���Ǵ�ñ�ʥƥ��Ȥ��Ǥ��ޤ���
|
84
|
+
</p>
|
85
|
+
<pre class="code">
|
86
|
+
% ruby ./test.rb -- [<i>hostname</i> [<i>user</i> [<i>passwd</i> [<i>dbname</i> [<i>port</i> [<i>socket</i> [<i>flag</i>]]]]]]]
|
87
|
+
</pre>
|
88
|
+
|
89
|
+
<p>
|
90
|
+
test.rb ��Ϳ��������� Mysql.real_connect() �ΰ�����Ʊ���Ǥ���
|
91
|
+
</p>
|
92
|
+
<p>
|
93
|
+
����ʤ���С������ѡ��桼���ǥ��ȡ��뤷�Ƥ���������
|
94
|
+
</p>
|
95
|
+
<pre class="code">
|
96
|
+
# make install
|
97
|
+
</pre>
|
98
|
+
|
99
|
+
<h3>����</h3>
|
100
|
+
<p>
|
101
|
+
�ƥ��Ȼ��˥饤�֥�� libmysqlclient �����Ĥ���ʤ��Ȥ������顼���Ф���ϡ�make ���˥饤�֥��ξ�����ꤹ��ɬ�פ�����ޤ������Τ褦�ˤ��� make ���ƤߤƤ���������
|
102
|
+
</p>
|
103
|
+
<pre class="code">
|
104
|
+
% env LD_RUN_PATH=<i>libmysqlclient.so��</i> make
|
105
|
+
</pre>
|
106
|
+
<p>
|
107
|
+
test.rb �� Linux ��Ǥ�ư�����ǧ���Ƥ��ޤ���
|
108
|
+
¾�Υץ�åȥե�����Ǥϥ��顼���Ф뤫�⤷��ޤ���
|
109
|
+
</p>
|
110
|
+
|
111
|
+
<h2>�Ȥ���</h2>
|
112
|
+
<p>
|
113
|
+
��å�̾�� C API �δؿ����� mysql_ ��Ƭ�����������Τ�Ʊ���Ǥ�����åɤλ�����ˡ�����Ū���б����� C API �ؿ���Ʊ�ͤǤ��Τǡ��ܺ٤� MySQL �Υޥ˥奢��Ƥ���������
|
114
|
+
</p>
|
115
|
+
<p>
|
116
|
+
��å���ǥ��顼��ȯ���������� Mysql::Error �㳰��ȯ�����ޤ���
|
117
|
+
</p>
|
118
|
+
<p>
|
119
|
+
�ä˰�̣�Τ����ͤ��֤��ʤ��ؿ��� self ���֤��ޤ���
|
120
|
+
</p>
|
121
|
+
|
122
|
+
<h2>Mysql ���饹</h2>
|
123
|
+
<p>
|
124
|
+
MySQL �����뤿��Υ��饹�Ǥ���
|
125
|
+
</p>
|
126
|
+
|
127
|
+
<h3>���饹��å�</h3>
|
128
|
+
<dl>
|
129
|
+
<dt>init()
|
130
|
+
<dd>
|
131
|
+
<p>
|
132
|
+
Mysql ���饹���֥������Ȥ��֤��ޤ���mysqld ����³�Ϥ��ޤ���
|
133
|
+
Mysql#options() ��ɬ�פʾ��ϡ������Ƥ����˹Ԥʤ��ޤ���
|
134
|
+
</p>
|
135
|
+
|
136
|
+
<dt>real_connect(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
137
|
+
<dt>connect(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
138
|
+
<dt>new(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
139
|
+
<dd>
|
140
|
+
<p>
|
141
|
+
mysqld ����³����Mysql ���饹���֥������Ȥ��֤��ޤ���
|
142
|
+
flag ������� C API �Τ�Τ�Ʊ���Ǥ���
|
143
|
+
</p>
|
144
|
+
<p>
|
145
|
+
��) Mysql::CLIENT_FOUND_ROWS
|
146
|
+
</p>
|
147
|
+
|
148
|
+
<dt>escape_string(str)
|
149
|
+
<dt>quote(str)
|
150
|
+
<dd>
|
151
|
+
<p>
|
152
|
+
insert, update �Ѥ�ʸ��������Ȥ��ޤ���
|
153
|
+
</p>
|
154
|
+
|
155
|
+
<dt>get_client_info()
|
156
|
+
<dt>client_info()
|
157
|
+
<dd>
|
158
|
+
<p>
|
159
|
+
���饤����ȥС����������ʸ������֤��ޤ���
|
160
|
+
</p>
|
161
|
+
|
162
|
+
<dt>get_client_version()
|
163
|
+
<dt>client_version()
|
164
|
+
<dd>
|
165
|
+
<p>
|
166
|
+
���饤����ȥС������������ͤ��֤��ޤ���
|
167
|
+
</p>
|
168
|
+
|
169
|
+
<dt>debug(str)
|
170
|
+
<dd>
|
171
|
+
<p>
|
172
|
+
C API mysql_debug() ��Ʊ����
|
173
|
+
</p>
|
174
|
+
</dl>
|
175
|
+
|
176
|
+
<h3>���֥������ȥ�å�</h3>
|
177
|
+
<dl>
|
178
|
+
<dt>options(opt, val=nil)
|
179
|
+
<dd>
|
180
|
+
<p>
|
181
|
+
C API �� mysql_options() ��Ʊ���Ǥ���
|
182
|
+
opt �˻��ꤹ������� C API ���� MYSQL_ ��Ƭ�������������ΤǤ���
|
183
|
+
</p>
|
184
|
+
<p>
|
185
|
+
��) Mysql::OPT_CONNECT_TIMEOUT
|
186
|
+
</p>
|
187
|
+
|
188
|
+
<dt>real_connect(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
189
|
+
<dt>connect(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
|
190
|
+
<dd>
|
191
|
+
<p>
|
192
|
+
Mysql.real_connect() ��Ʊ���Ǥ���Mysql.init() �������������֥������Ȥ��Ф���³���뤿��˻��Ѥ��ޤ���
|
193
|
+
</p>
|
194
|
+
|
195
|
+
<dt>affected_rows()
|
196
|
+
<dd>
|
197
|
+
<p>
|
198
|
+
�ƶ����줿�Կ����֤��ޤ���
|
199
|
+
</p>
|
200
|
+
|
201
|
+
<dt>autocommit(mode)
|
202
|
+
<dd>
|
203
|
+
<p>
|
204
|
+
autocommit �⡼�ɤ� mode �����ꤷ�ޤ���mode �� nil, false, 0 �λ��ϥ��ա�����ʳ��ξ��ϥ���Ǥ���
|
205
|
+
</p>
|
206
|
+
|
207
|
+
<dt>change_user(user=nil, passwd=nil, db=nil)
|
208
|
+
<dd>
|
209
|
+
<p>
|
210
|
+
��³�桼�����ѹ����ޤ���
|
211
|
+
</p>
|
212
|
+
|
213
|
+
<dt>character_set_name()
|
214
|
+
<dd>
|
215
|
+
<p>
|
216
|
+
���ߤ�ʸ�����åȤ��֤��ޤ���
|
217
|
+
</p>
|
218
|
+
|
219
|
+
<dt>close()
|
220
|
+
<dd>
|
221
|
+
<p>
|
222
|
+
��³�����Ǥ��ޤ���
|
223
|
+
</p>
|
224
|
+
|
225
|
+
<dt>commit()
|
226
|
+
<dd>
|
227
|
+
<p>
|
228
|
+
�ȥ�������ߥåȤ��ޤ���
|
229
|
+
</p>
|
230
|
+
|
231
|
+
<dt>create_db(db)
|
232
|
+
<dd>
|
233
|
+
<p>
|
234
|
+
�ǡ����١�����������ޤ���
|
235
|
+
</p>
|
236
|
+
|
237
|
+
<dt>drop_db(db)
|
238
|
+
<dd>
|
239
|
+
<p>
|
240
|
+
�ǡ����١������˴����ޤ���
|
241
|
+
</p>
|
242
|
+
|
243
|
+
<dt>dump_debug_info()
|
244
|
+
<dd>
|
245
|
+
<p>
|
246
|
+
C API mysql_dump_debug_info() ��Ʊ����
|
247
|
+
</p>
|
248
|
+
|
249
|
+
<dt>errno()
|
250
|
+
<dd>
|
251
|
+
<p>
|
252
|
+
���顼�ֹ���֤��ޤ���
|
253
|
+
</p>
|
254
|
+
|
255
|
+
<dt>error()
|
256
|
+
<dd>
|
257
|
+
<p>
|
258
|
+
���顼��å��������֤��ޤ���
|
259
|
+
</p>
|
260
|
+
|
261
|
+
<dt>escape_string(str)
|
262
|
+
<dt>quote(str)
|
263
|
+
<dd>
|
264
|
+
<p>
|
265
|
+
insert, update �Ѥ�ʸ��������Ȥ��ޤ���
|
266
|
+
C API �� mysql_real_escape_string() ��Ʊ����
|
267
|
+
</p>
|
268
|
+
|
269
|
+
<dt>field_count()
|
270
|
+
<dd>
|
271
|
+
<p>
|
272
|
+
�Ǹ�˼¹Ԥ��줿������ι��ܿ����֤��ޤ���
|
273
|
+
</p>
|
274
|
+
|
275
|
+
<dt>get_client_info()
|
276
|
+
<dt>client_info()
|
277
|
+
<dd>
|
278
|
+
<p>
|
279
|
+
���饤����ȥС����������ʸ������֤��ޤ���
|
280
|
+
</p>
|
281
|
+
|
282
|
+
<dt>get_client_version()
|
283
|
+
<dt>client_version()
|
284
|
+
<dd>
|
285
|
+
<p>
|
286
|
+
���饤����ȥС������������ͤ��֤��ޤ���
|
287
|
+
</p>
|
288
|
+
|
289
|
+
<dt>get_host_info()
|
290
|
+
<dt>host_info()
|
291
|
+
<dd>
|
292
|
+
<p>
|
293
|
+
��³�����ʸ������֤��ޤ���
|
294
|
+
</p>
|
295
|
+
|
296
|
+
<dt>get_proto_info()
|
297
|
+
<dt>proto_info()
|
298
|
+
<dd>
|
299
|
+
<p>
|
300
|
+
��³�ץ��ȥ���С���������ͤ��֤��ޤ���
|
301
|
+
</p>
|
302
|
+
|
303
|
+
<dt>get_server_info()
|
304
|
+
<dt>server_info()
|
305
|
+
<dd>
|
306
|
+
<p>
|
307
|
+
�����ФΥС����������ʸ������֤��ޤ���
|
308
|
+
</p>
|
309
|
+
|
310
|
+
<dt>get_server_version()
|
311
|
+
<dt>server_version()
|
312
|
+
<dd>
|
313
|
+
<p>
|
314
|
+
�����ФΥС������������ͤ��֤��ޤ���
|
315
|
+
</p>
|
316
|
+
|
317
|
+
<dt>info()
|
318
|
+
<dd>
|
319
|
+
<p>
|
320
|
+
ľ���Υ�����ξ����ʸ������֤��ޤ����ä˾��ʤ���� nil ���֤�ޤ���
|
321
|
+
</p>
|
322
|
+
|
323
|
+
<dt>insert_id()
|
324
|
+
<dd>
|
325
|
+
<p>
|
326
|
+
�Ǹ���������줿 AUTO_INCREMENT ���ܤ��ͤ��֤��ޤ���
|
327
|
+
</p>
|
328
|
+
|
329
|
+
<dt>kill(id)
|
330
|
+
<dd>
|
331
|
+
<p>
|
332
|
+
id �ǻ��ꤷ������åɤ��ޤ���
|
333
|
+
</p>
|
334
|
+
|
335
|
+
<dt>list_dbs(db=nil)
|
336
|
+
<dd>
|
337
|
+
<p>
|
338
|
+
�ǡ����١����ΰ�����������֤��ޤ���
|
339
|
+
</p>
|
340
|
+
|
341
|
+
<dt>list_fields(table, field=nil)
|
342
|
+
<dd>
|
343
|
+
<p>
|
344
|
+
�ơ��֥���ι��ܾ���ΰ����� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
345
|
+
</p>
|
346
|
+
|
347
|
+
<dt>list_processes()
|
348
|
+
<dd>
|
349
|
+
<p>
|
350
|
+
�����о�θ��ߤΥ���åɤΰ����� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
351
|
+
</p>
|
352
|
+
|
353
|
+
<dt>list_tables(table=nil)
|
354
|
+
<dd>
|
355
|
+
<p>
|
356
|
+
�ơ��֥�ΰ�����������֤��ޤ���
|
357
|
+
</p>
|
358
|
+
|
359
|
+
<dt>more_results?()
|
360
|
+
<dd>
|
361
|
+
<p>
|
362
|
+
�������Ƥ��ʤ��������̤�������Ͽ����֤��ޤ���
|
363
|
+
</p>
|
364
|
+
|
365
|
+
<dt>next_result()
|
366
|
+
<dd>
|
367
|
+
<p>
|
368
|
+
�������Ƥ��ʤ��������̤�������Ͽ����֤��ޤ���
|
369
|
+
���θ�� store_result() ��¹Ԥ���ȥ������̤�����Ǥ��ޤ���
|
370
|
+
</p>
|
371
|
+
|
372
|
+
<dt>ping()
|
373
|
+
<dd>
|
374
|
+
<p>
|
375
|
+
�����Ф������Ƥ��뤫�ɤ���������å����ޤ���
|
376
|
+
</p>
|
377
|
+
|
378
|
+
<dt>prepare(q)
|
379
|
+
<dd>
|
380
|
+
<p>
|
381
|
+
��������Ф�����ޤ������λ����ǤϤޤ��¹Ԥ���ޤ���
|
382
|
+
Mysql::Stmt ���饹���֥������Ȥ��֤��ޤ���
|
383
|
+
</p>
|
384
|
+
<p>
|
385
|
+
Mysql#stmt_init.prepare(q) ��Ʊ���Ǥ���
|
386
|
+
</p>
|
387
|
+
|
388
|
+
<dt>query(q)
|
389
|
+
<dt>real_query(q)
|
390
|
+
<dd>
|
391
|
+
<p>
|
392
|
+
�������¹Ԥ��ޤ���
|
393
|
+
�����꤬��̤��֤���硢��ưŪ�� store_result() ��¹Ԥ��ơ�Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
394
|
+
query_with_result �� false �����ꤵ��Ƥ���С�store_result() �ϼ¹Ԥ��ޤ���
|
395
|
+
</p>
|
396
|
+
|
397
|
+
<dt>query(q) {|res| ...}
|
398
|
+
<dt>real_query(q) {|res| ...}
|
399
|
+
<dd>
|
400
|
+
<p>
|
401
|
+
�������¹Ԥ��ޤ���
|
402
|
+
�����꤬��̤��֤���硢Mysql::Result ���֥������Ȥ�����Ȥ��ƥ֥��å���¹Ԥ��ޤ���
|
403
|
+
�֥��å���λ���� Mysql::Result ���֥������Ȥϲ�������ޤ���
|
404
|
+
�ޥ�����ơ��ȥ��ȥ⡼�ɤǡ������ˡ�;�פǶ��ڤ�줿ʣ���Υ��������ꤷ�����ϡ�������ο������֥��å����֤��ޤ���
|
405
|
+
</p>
|
406
|
+
<p>
|
407
|
+
MySQL/Ruby 2.8 ����ϡ���ưŪ�˥ޥ�����ơ��ȥ��ȥ⡼�ɤˤϤʤ�ʤ��ʤ�ޤ�����
|
408
|
+
Mysql.connect �� flag �� Mysql::CLIENT_MULTI_STATEMENTS ����ꤹ�뤫��Mysql#set_server_option(Mysql::OPTION_MULTI_STATEMENTS_ON) ��¹Ԥ��Ƥ���������
|
409
|
+
</p>
|
410
|
+
|
411
|
+
<dt>refresh(r)
|
412
|
+
<dd>
|
413
|
+
<p>
|
414
|
+
�����ФΥ����䥭��å�������ե�å��夷�ޤ���
|
415
|
+
</p>
|
416
|
+
|
417
|
+
<dt>reload()
|
418
|
+
<dd>
|
419
|
+
<p>
|
420
|
+
�����������ơ��֥����ɤ߹��ߤ��ޤ���
|
421
|
+
</p>
|
422
|
+
|
423
|
+
<dt>rollback()
|
424
|
+
<dd>
|
425
|
+
<p>
|
426
|
+
�ȥ�������������Хå����ޤ���
|
427
|
+
</p>
|
428
|
+
|
429
|
+
<dt>select_db(db)
|
430
|
+
<dd>
|
431
|
+
<p>
|
432
|
+
�ǡ����١��������ޤ���
|
433
|
+
</p>
|
434
|
+
|
435
|
+
<dt>set_server_option(opt)
|
436
|
+
<dd>
|
437
|
+
<p>
|
438
|
+
�����ǻ��ꤷ�����ץ������Ф����ꤷ�ޤ���
|
439
|
+
�����ˤϡ�Mysql::OPTION_MULTI_STATEMENTS_ON, Mysql::OPTION_MULTI_STATEMENTS_OFF ������Ǥ��ޤ���
|
440
|
+
</p>
|
441
|
+
|
442
|
+
<dt>shutdown()
|
443
|
+
<dd>
|
444
|
+
<p>
|
445
|
+
�����Ф���ߤ��ޤ���
|
446
|
+
</p>
|
447
|
+
|
448
|
+
<dt>ssl_set(key=nil, cert=nil, ca=nil, capath=nil, cipher=nil)
|
449
|
+
<dd>
|
450
|
+
<p>
|
451
|
+
SSL��³����Ѥ��ޤ���Mysql.init() �塢Mysql#connect() ���˹Ԥʤ�ɬ�פ�����ޤ���
|
452
|
+
</p>
|
453
|
+
|
454
|
+
<dt>stat()
|
455
|
+
<dd>
|
456
|
+
<p>
|
457
|
+
�����Фξ��֤�ʸ������֤��ޤ���
|
458
|
+
</p>
|
459
|
+
|
460
|
+
<dt>stmt_init()
|
461
|
+
<dd>
|
462
|
+
<p>
|
463
|
+
Mysql::Stmt ���饹���֥������Ȥ��֤��ޤ���
|
464
|
+
</p>
|
465
|
+
|
466
|
+
<dt>store_result()
|
467
|
+
<dd>
|
468
|
+
<p>
|
469
|
+
������η�̤� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
470
|
+
</p>
|
471
|
+
|
472
|
+
<dt>thread_id()
|
473
|
+
<dd>
|
474
|
+
<p>
|
475
|
+
���ߤ���³�Υ���å�ID���֤��ޤ���
|
476
|
+
</p>
|
477
|
+
|
478
|
+
<dt>use_result()
|
479
|
+
<dd>
|
480
|
+
<p>
|
481
|
+
������η�̤� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
482
|
+
</p>
|
483
|
+
|
484
|
+
<dt>warning_count()
|
485
|
+
<dd>
|
486
|
+
<p>
|
487
|
+
ľ���Υ�����ηٹ�����֤��ޤ���
|
488
|
+
</p>
|
489
|
+
</dl>
|
490
|
+
|
491
|
+
<h3>���֥��������ѿ�</h3>
|
492
|
+
|
493
|
+
<dl>
|
494
|
+
<dt>query_with_result
|
495
|
+
<dd>
|
496
|
+
<p>
|
497
|
+
true �����ꤹ��� query() ���� store_result() ��¹Ԥ��ơ�Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
498
|
+
false �����ꤹ��Ȥ���ư��ϹԤ��ޤ��ǥե���Ȥ� true �Ǥ���
|
499
|
+
</p>
|
500
|
+
|
501
|
+
<dt>reconnect
|
502
|
+
<dd>
|
503
|
+
<p>
|
504
|
+
true �����ꤹ��� MySQL �����ФȤ���³���ڤ줿�Ȥ��˼�ưŪ�˺���³���ޤ���
|
505
|
+
�ǥե���Ȥ� false �Ǥ���
|
506
|
+
</p>
|
507
|
+
</dl>
|
508
|
+
|
509
|
+
<h2>Mysql::Result ���饹</h2>
|
510
|
+
<p>
|
511
|
+
�������̤Υ��饹�Ǥ���
|
512
|
+
</p>
|
513
|
+
|
514
|
+
<h3>���֥������ȥ�å�</h3>
|
515
|
+
<dl>
|
516
|
+
<dt>free()
|
517
|
+
<dd>
|
518
|
+
<p>
|
519
|
+
��̥ơ��֥��ѥ����������ޤ���
|
520
|
+
</p>
|
521
|
+
|
522
|
+
<dt>data_seek(offset)
|
523
|
+
<dd>
|
524
|
+
<p>
|
525
|
+
���ߤιԤΰ��֤� offset ���ܤιԤˤ��ޤ���
|
526
|
+
</p>
|
527
|
+
|
528
|
+
<dt>fetch_field()
|
529
|
+
<dd>
|
530
|
+
<p>
|
531
|
+
���ߤι��ܤ� Mysql::Field ���饹���֥������Ȥ��֤��ޤ���
|
532
|
+
���˸ƤФ줿���ϼ��ι��ܤ��֤��ޤ���
|
533
|
+
</p>
|
534
|
+
|
535
|
+
<dt>fetch_fields()
|
536
|
+
<dd>
|
537
|
+
<p>
|
538
|
+
�������Τ�ɽ�� Mysql::Field ���饹���֥������Ȥ�������֤��ޤ���
|
539
|
+
</p>
|
540
|
+
|
541
|
+
<dt>fetch_field_direct(fieldnr)
|
542
|
+
<dd>
|
543
|
+
<p>
|
544
|
+
fieldnr ���ܤι��ܤ� Mysql::Field ���饹���֥������Ȥ��֤��ޤ���
|
545
|
+
</p>
|
546
|
+
|
547
|
+
<dt>fetch_lengths()
|
548
|
+
<dd>
|
549
|
+
<p>
|
550
|
+
���ߤιԤγƹ����ͤ�Ĺ����������֤��ޤ���
|
551
|
+
</p>
|
552
|
+
|
553
|
+
<dt>fetch_row()
|
554
|
+
<dd>
|
555
|
+
<p>
|
556
|
+
������̤Σ��Ԥ��֤��ޤ������˸ƤФ줿���ϼ��ιԤ��֤��ޤ���
|
557
|
+
����ͤϹ����ͤ�����Ǥ���
|
558
|
+
</p>
|
559
|
+
|
560
|
+
<dt>fetch_hash(with_table=false)
|
561
|
+
<dd>
|
562
|
+
<p>
|
563
|
+
������̤Σ��Ԥ��֤��ޤ������˸ƤФ줿���ϼ��ιԤ��֤��ޤ���
|
564
|
+
����ͤϹ���̾���Ȥ��������ͤΥϥå���Ǥ���
|
565
|
+
with_table �� true �ξ��ϥ����˥ơ��֥�̾���ղä��졢"�ơ��֥�̾.����̾" �Ȥ��������Υ����ˤʤ�ޤ���
|
566
|
+
</p>
|
567
|
+
|
568
|
+
<dt>field_seek(offset)
|
569
|
+
<dd>
|
570
|
+
<p>
|
571
|
+
���ߤι��ܰ��֤� offset ���ܤι��ܤˤ��ޤ���
|
572
|
+
</p>
|
573
|
+
|
574
|
+
<dt>field_tell()
|
575
|
+
<dd>
|
576
|
+
<p>
|
577
|
+
���ߤι��ܤΰ��֤��֤��ޤ���
|
578
|
+
</p>
|
579
|
+
|
580
|
+
<dt>num_fields()
|
581
|
+
<dd>
|
582
|
+
<p>
|
583
|
+
���ܿ����֤��ޤ���
|
584
|
+
</p>
|
585
|
+
|
586
|
+
<dt>num_rows()
|
587
|
+
<dd>
|
588
|
+
<p>
|
589
|
+
����������֤��ޤ���
|
590
|
+
</p>
|
591
|
+
|
592
|
+
<dt>row_seek(offset)
|
593
|
+
<dd>
|
594
|
+
<p>
|
595
|
+
���ߤιԤΰ��֤����ꤷ�ޤ���
|
596
|
+
offset ������ɽ���� row_tell() ���֤��� Mysql::RowOffset ���饹���֥������ȤǤ���
|
597
|
+
</p>
|
598
|
+
|
599
|
+
<dt>row_tell()
|
600
|
+
<dd>
|
601
|
+
<p>
|
602
|
+
���ߤιԤΰ��֤� Mysql::RowOffset ���饹���֥������Ȥ��֤��ޤ���
|
603
|
+
</p>
|
604
|
+
</dl>
|
605
|
+
|
606
|
+
<h3>���ƥ졼��</h3>
|
607
|
+
<dl>
|
608
|
+
<dt>each() {|x| ��}
|
609
|
+
<dd>
|
610
|
+
<p>
|
611
|
+
������̤γƹԤ��Ȥ� {��} ���֤��ޤ���x �Ϲ����ͤ�����Ǥ���
|
612
|
+
</p>
|
613
|
+
|
614
|
+
<dt>each_hash(with_table=false) {|x| ��}
|
615
|
+
<dd>
|
616
|
+
<p>
|
617
|
+
������̤γƹԤ��Ȥ� {��} ���֤��ޤ���
|
618
|
+
x �Ϲ���̾���Ȥ��������ͤΥϥå���Ǥ���
|
619
|
+
with_table �� true �ξ��ϥ����˥ơ��֥�̾���ղä��졢"�ơ��֥�̾.����̾" �Ȥ��������Υ����ˤʤ�ޤ���
|
620
|
+
</p>
|
621
|
+
</dl>
|
622
|
+
|
623
|
+
<h2>Mysql::Field ���饹</h2>
|
624
|
+
<p>
|
625
|
+
���ܤξܺ٤�ɽ�����饹�Ǥ���C API �Ȱۤʤꡢ���֥������Ȥ� Mysql::Result �Ȥ���Ω����¸�ߤ���Τǡ�Mysql::Result ���饹���֥������Ȥ��������줿��Ǥ����ѤǤ��ޤ����������Τ��� C API ����������Ѥ��ޤ���
|
626
|
+
</p>
|
627
|
+
|
628
|
+
<h3>���֥��������ѿ�(�ɤ߽Ф��Τ�)</h3>
|
629
|
+
<dl>
|
630
|
+
<dt>name<dd>����̾
|
631
|
+
<dt>table<dd>�ơ��֥�̾
|
632
|
+
<dt>def<dd>�ǥե������
|
633
|
+
<dt>type<dd>���ܤη�
|
634
|
+
<dt>length<dd>���ܤ�Ĺ��
|
635
|
+
<dt>max_length<dd>���������ι����ͤκ���Ĺ
|
636
|
+
<dt>flags<dd>�ե饰
|
637
|
+
<dt>decimals<dd>���������
|
638
|
+
</dl>
|
639
|
+
<p>
|
640
|
+
type ���б���������� C API �Τ�Τ��� FIELD_ ��Ƭ�����������ΤǤ���
|
641
|
+
</p>
|
642
|
+
<p>
|
643
|
+
��) Mysql::Field::TYPE_STRING
|
644
|
+
</p>
|
645
|
+
<p>
|
646
|
+
flag ���б���������� C API �Τ�Τ�Ʊ���Ǥ���
|
647
|
+
</p>
|
648
|
+
<p>
|
649
|
+
��) Mysql::Field::BLOB_FLAG
|
650
|
+
</p>
|
651
|
+
|
652
|
+
<h3>���֥������ȥ�å�</h3>
|
653
|
+
<dl>
|
654
|
+
<dt>hash()
|
655
|
+
<dd>
|
656
|
+
<p>
|
657
|
+
�嵭���ѿ�̾���Ȥ���ϥå�����֤��ޤ���
|
658
|
+
</p>
|
659
|
+
<p>
|
660
|
+
��) obj.name == obj.hash['name']
|
661
|
+
</p>
|
662
|
+
|
663
|
+
<dt>is_not_null?()
|
664
|
+
<dd>
|
665
|
+
<p>
|
666
|
+
�ե�����ɤ� "NOT NULL" ���������Ƥ���п����֤��ޤ���
|
667
|
+
</p>
|
668
|
+
|
669
|
+
<dt>is_num?()
|
670
|
+
<dd>
|
671
|
+
<p>
|
672
|
+
�ե�����ɤ����ͤξ��Ͽ����֤��ޤ���
|
673
|
+
</p>
|
674
|
+
|
675
|
+
<dt>is_pri_key?()
|
676
|
+
<dd>
|
677
|
+
<p>
|
678
|
+
�ե�����ɤ��ץ饤�ޥꥭ���ξ��Ͽ����֤��ޤ���
|
679
|
+
</p>
|
680
|
+
|
681
|
+
<dt>inspect()
|
682
|
+
<dd>
|
683
|
+
<p>
|
684
|
+
ʸ���� "#<Mysql::Field:����̾>" ���֤��ޤ���
|
685
|
+
</p>
|
686
|
+
</dl>
|
687
|
+
|
688
|
+
<h2>Mysql::Stmt ���饹</h2>
|
689
|
+
<p>
|
690
|
+
MySQL �ǥץ�ڥ��ɥ��ơ��ȥ��Ȥ�����Υ��饹�Ǥ���
|
691
|
+
</p>
|
692
|
+
<p>
|
693
|
+
������:
|
694
|
+
</p>
|
695
|
+
<pre class="code">
|
696
|
+
my = Mysql.new(hostname, username, password, databasename)
|
697
|
+
st = my.prepare("insert into tblname (col1,col2,col3) values (?,?,?)")
|
698
|
+
st.execute("abc",123,Time.now)
|
699
|
+
st.prepare("select col1,col2,col3 from tblname")
|
700
|
+
st.execute
|
701
|
+
st.fetch # => ["abc", 123, #<Mysql::Time:2005-07-24 23:52:55>]
|
702
|
+
st.close
|
703
|
+
</pre>
|
704
|
+
|
705
|
+
<h3>���֥������ȥ�å�</h3>
|
706
|
+
<dl>
|
707
|
+
<dt>affected_rows()
|
708
|
+
<dd>
|
709
|
+
<p>
|
710
|
+
�ƶ����줿�Կ����֤��ޤ���
|
711
|
+
</p>
|
712
|
+
|
713
|
+
<dt>bind_result(class, ...)
|
714
|
+
<dd>
|
715
|
+
<p>
|
716
|
+
��̤��֤�������ξ��ˡ����Ф�����ͤΥ��饹����ꤷ�ޤ���
|
717
|
+
����Ǥ��륯�饹�ϡ�Numeric, Integer, Fixnum, Float, Mysql::Time �Ǥ���
|
718
|
+
nil ����ꤹ��ȡ���ưȽ�̤��ޤ���
|
719
|
+
bind_result ��¹Ԥ��ʤ����ϼ�ưȽ�̤��ޤ���
|
720
|
+
</p>
|
721
|
+
|
722
|
+
<dt>close()
|
723
|
+
<dd>
|
724
|
+
<p>
|
725
|
+
Mysql::Stmt ���֥������Ȥ�������ޤ���
|
726
|
+
</p>
|
727
|
+
|
728
|
+
<dt>data_seek(offset)
|
729
|
+
<dd>
|
730
|
+
<p>
|
731
|
+
���� fetch() �Ǽ��Ф����Ԥ� offset ���ܤιԤˤ��ޤ���
|
732
|
+
offset �� 0 ����Ϥޤ�ޤ���
|
733
|
+
</p>
|
734
|
+
|
735
|
+
<dt>execute(arg, ...)
|
736
|
+
<dd>
|
737
|
+
<p>
|
738
|
+
prepare() ����������˥ѥ�����Ϳ���Ƽ¹Ԥ��ޤ���
|
739
|
+
</p>
|
740
|
+
|
741
|
+
<dt>fetch()
|
742
|
+
<dd>
|
743
|
+
<p>
|
744
|
+
execute() �Ǽ¹Ԥ���������η�̤��ͤ�����Ǽ��Ф��ޤ���
|
745
|
+
�ͤ��֤��ʤ�������ξ��䡢�Ǹ�ޤǼ��Ф������� nil ���֤��ޤ���
|
746
|
+
</p>
|
747
|
+
<p>
|
748
|
+
����γ����Ǥ� MySQL �η��˱����Ƽ��Τ褦�ˤʤ�ޤ���
|
749
|
+
</p>
|
750
|
+
<table>
|
751
|
+
<tr><th>MySQL�η�<th>Ruby�Υ��饹
|
752
|
+
<tr><td>TINYINT, SMALLINT, MEDIUMINT, YEAR<td>Fixnum
|
753
|
+
<tr><td>INT, BIGINT<td>Fixnum�ޤ���Bignum
|
754
|
+
<tr><td>FLOAT, DOUBLE<td>Float
|
755
|
+
<tr><td>DECIMAL<td>String
|
756
|
+
<tr><td>DATE, DATETIME, TIMESTAMP, TIME<td>Mysql::Time
|
757
|
+
<tr><td>CHAR, VARCHAR, BINARY, VARBINARY, TINYBLOB, TINYTEXT, TINYBLOB, TINYTEXT, MEDIUMBLOB, MEDIUMTEXT, LONGBLOB, LONGTEXT, ENUM, SET, BIT<td>String
|
758
|
+
<tr><td>NULL<td>NilClass
|
759
|
+
</table>
|
760
|
+
|
761
|
+
<dt>field_count()
|
762
|
+
<dd>
|
763
|
+
<p>
|
764
|
+
prepare ���������꤬�֤���̤Υե�����ɿ����֤��ޤ���
|
765
|
+
</p>
|
766
|
+
|
767
|
+
<dt>free_result()
|
768
|
+
<dd>
|
769
|
+
<p>
|
770
|
+
������̤�������ޤ���
|
771
|
+
</p>
|
772
|
+
|
773
|
+
<dt>insert_id()
|
774
|
+
<dd>
|
775
|
+
<p>
|
776
|
+
�������줿 AUTO_INCREMENT ���ܤ��ͤ��֤��ޤ���
|
777
|
+
</p>
|
778
|
+
|
779
|
+
<dt>num_rows()
|
780
|
+
<dd>
|
781
|
+
<p>
|
782
|
+
������̤ιԿ����֤��ޤ���
|
783
|
+
</p>
|
784
|
+
|
785
|
+
<dt>param_count()
|
786
|
+
<dd>
|
787
|
+
<p>
|
788
|
+
prepare() ����������Υѥ�����?�פο����֤��ޤ���
|
789
|
+
</p>
|
790
|
+
|
791
|
+
<dt>prepare(q)
|
792
|
+
<dd>
|
793
|
+
<p>
|
794
|
+
��������Ф�����ޤ������λ����ǤϤޤ��¹Ԥ���ޤ���
|
795
|
+
execute() �Ǽ¹Ԥ���ޤ���
|
796
|
+
</p>
|
797
|
+
|
798
|
+
<dt>result_metadata()
|
799
|
+
<dd>
|
800
|
+
<p>
|
801
|
+
prepare() ������������֤�����̤Υե�����ɤ� Mysql::Result ���饹���֥������Ȥ��֤��ޤ���
|
802
|
+
</p>
|
803
|
+
|
804
|
+
<dt>row_seek(offset)
|
805
|
+
<dd>
|
806
|
+
<p>
|
807
|
+
���� fetch() �Ǽ��Ф����Ԥ� offset �ΰ��֤ˤ��ޤ���
|
808
|
+
data_seek �Ȱۤʤ� offset �� row_tell() ���֤���� Mysql::RowOffset ���饹���֥������ȤǤ���
|
809
|
+
</p>
|
810
|
+
|
811
|
+
<dt>row_tell()
|
812
|
+
<dd>
|
813
|
+
<p>
|
814
|
+
���ߤιԤΰ��֤� Mysql::RowOffset ���饹���֥������Ȥ��֤��ޤ���
|
815
|
+
</p>
|
816
|
+
|
817
|
+
<dt>sqlstate()
|
818
|
+
<dd>
|
819
|
+
<p>
|
820
|
+
���顼�����ɤ� SQLSTATE ʸ������֤��ޤ���
|
821
|
+
</p>
|
822
|
+
</dl>
|
823
|
+
|
824
|
+
<h3>���ƥ졼��</h3>
|
825
|
+
<dl>
|
826
|
+
<dt>each() {|x| ��}
|
827
|
+
<dd>
|
828
|
+
<p>
|
829
|
+
������̤γƹԤ��Ȥ� {��} ���֤��ޤ���
|
830
|
+
x �� fetch() ���֤�����Τ�Ʊ������Ǥ���
|
831
|
+
</p>
|
832
|
+
</dl>
|
833
|
+
|
834
|
+
<h2>Mysql::Time ���饹</h2>
|
835
|
+
<p>
|
836
|
+
Mysql::Stmt �ǻȤ���������ɽ������Υ��饹�Ǥ���
|
837
|
+
</p>
|
838
|
+
|
839
|
+
<h3>���饹��å�</h3>
|
840
|
+
<dl>
|
841
|
+
<dt>new(year=0,month=0,day=0,hour=0,minute=0,second=0,neg=false,second_part=0)
|
842
|
+
<dd>
|
843
|
+
<p>
|
844
|
+
Mysql::Time���饹��������ޤ���
|
845
|
+
</p>
|
846
|
+
</dl>
|
847
|
+
|
848
|
+
<h3>���֥��������ѿ�</h3>
|
849
|
+
<dl>
|
850
|
+
<dt>year
|
851
|
+
<dd>
|
852
|
+
ǯ
|
853
|
+
|
854
|
+
<dt>month
|
855
|
+
<dd>
|
856
|
+
��
|
857
|
+
|
858
|
+
<dt>day
|
859
|
+
<dd>
|
860
|
+
��
|
861
|
+
|
862
|
+
<dt>hour
|
863
|
+
<dd>
|
864
|
+
��
|
865
|
+
|
866
|
+
<dt>minute
|
867
|
+
<dd>
|
868
|
+
ʬ
|
869
|
+
|
870
|
+
<dt>second
|
871
|
+
<dd>
|
872
|
+
��
|
873
|
+
|
874
|
+
<dt>neg
|
875
|
+
<dd>
|
876
|
+
���郎���ξ��� false, ��ξ��� true
|
877
|
+
|
878
|
+
<dt>second_part
|
879
|
+
<dd>
|
880
|
+
�äξ������ʲ���̤����
|
881
|
+
</dl>
|
882
|
+
|
883
|
+
<h2>Mysql::Error ���饹</h2>
|
884
|
+
<p>
|
885
|
+
MySQL �Υ��顼��ɽ�魯���饹�Ǥ���
|
886
|
+
MySQL �Υ��顼��ȯ�����������㳰�Ȥ�����������ޤ���
|
887
|
+
</p>
|
888
|
+
|
889
|
+
<h3>���֥��������ѿ�(�ɤ߽Ф��Τ�)</h3>
|
890
|
+
<dl>
|
891
|
+
<dt>error
|
892
|
+
<dd>���顼��å�����
|
893
|
+
<dt>errno
|
894
|
+
<dd>���顼�ֹ�
|
895
|
+
</dl>
|
896
|
+
<p>
|
897
|
+
errno ���б���������� C API �Τ�Τ�Ʊ���Ǥ���
|
898
|
+
</p>
|
899
|
+
<p>
|
900
|
+
��) Mysql::Error::CR_UNKNOWN_HOST
|
901
|
+
</p>
|
902
|
+
|
903
|
+
<h2>����</h2>
|
904
|
+
<dl>
|
905
|
+
<dt>2010-02-11</dt>
|
906
|
+
<dd>
|
907
|
+
version 2.8.2<br>
|
908
|
+
<ul>
|
909
|
+
<li>Fix: Mysql#insert_id �� 2**32 �ʾ�λ����������ͤ��֤���
|
910
|
+
</ul>
|
911
|
+
|
912
|
+
<dt>2009-02-01
|
913
|
+
<dd>
|
914
|
+
version 2.8.1<br>
|
915
|
+
<ul>
|
916
|
+
<li>Ruby 1.9.1 �����
|
917
|
+
</ul>
|
918
|
+
|
919
|
+
<dt>2008-09-29
|
920
|
+
<dd>
|
921
|
+
version 2.8<br>
|
922
|
+
version 2.7.7
|
923
|
+
<ul>
|
924
|
+
<li>MySQL�ؤ���³���� SIGVTALRM �� EINTR �ˤʤ뤳�Ȥ������������ ([ruby-dev:31842])
|
925
|
+
<li>MySQL/Ruby 2.7.* �� Ruby 1.8.5 �ǥ���ѥ���Ǥ��ʤ��ä���
|
926
|
+
</ul>
|
927
|
+
|
928
|
+
<dt>2008-06-20
|
929
|
+
<dd>
|
930
|
+
version 2.8pre4
|
931
|
+
<ul>
|
932
|
+
<li>���顼����ե��������������¾��[ruby-dev:35152]
|
933
|
+
</ul>
|
934
|
+
|
935
|
+
<dt>2008-06-17
|
936
|
+
<dd>
|
937
|
+
version 2.8pre3<br>
|
938
|
+
version 2.7.6
|
939
|
+
<ul>
|
940
|
+
<li>64bit �Ķ��� Mysql::Stmt#execute ���礭�ʿ���(2**30 �ʾ�)�ǥ��顼�ˤʤ����������
|
941
|
+
</ul>
|
942
|
+
|
943
|
+
<dt>2008-03-08
|
944
|
+
<dd>
|
945
|
+
version 2.8pre2<br>
|
946
|
+
version 2.7.5
|
947
|
+
<ul>
|
948
|
+
<li>64bit �Ķ��� Mysql::Stmt#fetch �ǿ��ͤ���������������
|
949
|
+
</ul>
|
950
|
+
|
951
|
+
<dt>2007-12-26
|
952
|
+
<dd>
|
953
|
+
version 2.8pre1
|
954
|
+
<ul>
|
955
|
+
<li>Ruby 1.9.0 �б�
|
956
|
+
<li>Incompat: Mysql::Result#each_hash ������˥����̾ʸ�������������ΤǤϤʤ�����ͭ����褦�ˤ�����
|
957
|
+
<li>Incompat: �֥��å��Ĥ� Mysql#query �Ǽ�ưŪ�˥ޥ�����ơ��ȥ��ȥ⡼�ɤˤʤ�ʤ��褦�ˤ�����
|
958
|
+
</ul>
|
959
|
+
|
960
|
+
<dt>2007-08-22
|
961
|
+
<dd>
|
962
|
+
version 2.7.4
|
963
|
+
<ul>
|
964
|
+
<li>BUG: Mysql::Stmt#execute �����������Ƥ�����
|
965
|
+
</ul>
|
966
|
+
|
967
|
+
<dt>2006-12-20
|
968
|
+
<dd>
|
969
|
+
version 2.7.3
|
970
|
+
<ul>
|
971
|
+
<li>BUG: �֥��å��Ĥ� Mysql#query �����Ǹ�Υ����꤬���顼�ξ�����ߤ��Ƥ��ޤ���
|
972
|
+
</ul>
|
973
|
+
|
974
|
+
<dt>2006-10-28
|
975
|
+
<dd>
|
976
|
+
version 2.7.2
|
977
|
+
<ul>
|
978
|
+
<li>BUG: ��̤��֤��ʤ�������� Mysql::Stmt#result_metadata �� nil ���Ѥ����褦�ˤ��� (Thanks to Hidetoshi)
|
979
|
+
<li>BUG: Mysql#close �� mysql_errno �ʤ��褦���ѹ�
|
980
|
+
<li>BUG: �֥��å��Ĥ� Mysql#query ��ʣ�����ơ��ȥ��Ȼ��˥��顼��̵�뤷�Ƥ�����
|
981
|
+
<li>extconf.rb �� Visual C++ �б� (Thanks to Shugo Maeda)
|
982
|
+
<li>BIT�����б�
|
983
|
+
<li>Mysql::Field �� TYPE_BIT, TYPE_NEWDECIMAL �ɲ�
|
984
|
+
</ul>
|
985
|
+
|
986
|
+
<dt>2006-06-04
|
987
|
+
<dd>
|
988
|
+
version 2.7.1
|
989
|
+
<ul>
|
990
|
+
<li>free() �� xfree() ���ѹ���Windows �ǤΥ���å���β���Τ��ᡣ(Tobias Grimm �˴���)
|
991
|
+
</ul>
|
992
|
+
|
993
|
+
<dt>2005-08-22
|
994
|
+
<dd>
|
995
|
+
version 2.7
|
996
|
+
<ul>
|
997
|
+
<li>Mysql#options������ɲá�Mysql::OPT_GUESS_CONNECTION, Mysql::OPT_USE_EMBEDDED_CONNECTION, Mysql::OPT_USE_REMOTE_CONNECTION, Mysql::SET_CLIENT_IP
|
998
|
+
<li>test.rb: 4.0.x, 5.0.x �б�
|
999
|
+
</ul>
|
1000
|
+
|
1001
|
+
<dt>2005-08-16
|
1002
|
+
<dd>
|
1003
|
+
version 2.7-beta3
|
1004
|
+
<ul>
|
1005
|
+
<li>Mysql::Stmt#bind_result �ɲ�
|
1006
|
+
</ul>
|
1007
|
+
|
1008
|
+
<dt>2005-08-02
|
1009
|
+
<dd>
|
1010
|
+
version 2.7-beta2
|
1011
|
+
<ul>
|
1012
|
+
<li>BUG: mysql.c.in: fetch_hash: �ͤ� nil �����Ǥ��ϥå���˴ޤޤ�ʤ���(Stefan Kaes �˴���)
|
1013
|
+
<li>��� Mysql::VERSION �ɲ�
|
1014
|
+
<li>Mysql#prepare �ɲ�
|
1015
|
+
</ul>
|
1016
|
+
|
1017
|
+
<dt>2005-07-24
|
1018
|
+
<dd>
|
1019
|
+
version 2.7-beta
|
1020
|
+
<ul>
|
1021
|
+
<li>Mysql#stmt_init �ɲ�
|
1022
|
+
<li>Mysql::Stmt, Mysql::Time, Mysql::RowOffset ���饹�ɲ�
|
1023
|
+
<li>Mysql::Error#sqlstate �ɲ�
|
1024
|
+
<li>Mysql::Result#row_seek,row_tell ������ offset �ͤ� Mysql::RowOffset ���֥������Ȥ��ѹ�
|
1025
|
+
</ul>
|
1026
|
+
|
1027
|
+
<dt>2005-07-31
|
1028
|
+
<dd>
|
1029
|
+
version 2.6.3
|
1030
|
+
<ul>
|
1031
|
+
<li>��� Mysql::VERSION �ɲ�
|
1032
|
+
</ul>
|
1033
|
+
|
1034
|
+
<dt>2005-07-26
|
1035
|
+
<dd>
|
1036
|
+
version 2.6.2
|
1037
|
+
<ul>
|
1038
|
+
<li>BUG: mysql.c.in: fetch_hash: �ͤ� nil �����Ǥ��ϥå���˴ޤޤ�ʤ���(Stefan Kaes �˴���)
|
1039
|
+
</ul>
|
1040
|
+
|
1041
|
+
<dt>2005-06-28
|
1042
|
+
<dd>
|
1043
|
+
version 2.6.1
|
1044
|
+
<ul>
|
1045
|
+
<li>mysql.c.in: MacOSX �ǤΥ���ѥ��륨�顼������
|
1046
|
+
</ul>
|
1047
|
+
|
1048
|
+
<dt>2005-04-25
|
1049
|
+
<dd>
|
1050
|
+
version 2.6
|
1051
|
+
<ul>
|
1052
|
+
<li>Mysql#option() �Ѥ�����ɲ�
|
1053
|
+
Mysql::OPT_PROTOCOL, Mysql::OPT_READ_TIMEOUT,
|
1054
|
+
Mysql::OPT_WRITE_TIMEOUT, Mysql::SET_CHARSET_DIR,
|
1055
|
+
Mysql::SET_CHARSET_NAME, Mysql::SHARED_MEMORY_BASE_NAME,
|
1056
|
+
Mysql::SECURE_AUTH
|
1057
|
+
<li>Mysql#more_results?(), Mysql#next_result(),
|
1058
|
+
Mysql#set_server_option(), Mysql#sqlstate() �ɲ�
|
1059
|
+
<li>Mysql#connect() �Υե饰������ɲ�
|
1060
|
+
Mysql::CLIENT_MULTI_STATEMENTS, Mysql::CLIENT_MULTI_RESULTS
|
1061
|
+
<li>Mysql#set_server_option() �Ѥ�����ɲ�
|
1062
|
+
Mysql::OPTION_MULTI_STATEMENTS_ON,
|
1063
|
+
Mysql::OPTION_MULTI_STATEMENTS_OFF
|
1064
|
+
<li>�֥��å��դ� Mysql#query()
|
1065
|
+
<li>Mysql#reconnect(), Mysql#reconnect=() �ɲ�
|
1066
|
+
<li>MySQL �Ȥ���³���ڤ줿�Ȥ��ˡ��ǥե���ȤǤϺ���³���ʤ��褦�ˤ�����
|
1067
|
+
</ul>
|
1068
|
+
|
1069
|
+
<dt>2005-02-12
|
1070
|
+
<dd>
|
1071
|
+
version 2.5.2
|
1072
|
+
<ul>
|
1073
|
+
<li>BUG: Mysql#connect ����³�������³�����Ǥ���ʤ���(Andres Salomon �˴���)
|
1074
|
+
</ul>
|
1075
|
+
|
1076
|
+
<dt>2004-09-20
|
1077
|
+
<dd>
|
1078
|
+
version 2.5.1
|
1079
|
+
<ul>
|
1080
|
+
<li>Mysql#set_ssl() �ɲá�
|
1081
|
+
</ul>
|
1082
|
+
|
1083
|
+
<dt>2004-08-31
|
1084
|
+
<dd>
|
1085
|
+
version 2.5
|
1086
|
+
<ul>
|
1087
|
+
<li>MySQL 4.1.x �б�
|
1088
|
+
<li>MysqlRes, MysqlField, MysqlError �� Mysql::Result, Mysql::Field,
|
1089
|
+
Mysql::Error ���ѹ���
|
1090
|
+
<li>Mysql.client_version(), Mysql.get_client_version(),
|
1091
|
+
Mysql#client_version(), Mysql#get_client_version(),
|
1092
|
+
Mysql#server_version(), Mysql#get_server_version(),
|
1093
|
+
Mysql#warning_count(), Mysql#commit(), Mysql#rollback(),
|
1094
|
+
Mysql#autocommit() �ɲá�
|
1095
|
+
<li>Mysql::Field#is_not_null?(), Mysql::Field#is_pri_key?(),
|
1096
|
+
Mysql::Field#is_num?() �ɲá�
|
1097
|
+
<li>MysqlField::TYPE_VAR_STRING �ɲá�
|
1098
|
+
</ul>
|
1099
|
+
|
1100
|
+
<dt>2003-08-10
|
1101
|
+
<dd>
|
1102
|
+
version 2.4.5
|
1103
|
+
<ul>
|
1104
|
+
<li>extconf.rb: MySQL 4.1 ���
|
1105
|
+
<li>mysql.c.in: Ruby 1.8 ���
|
1106
|
+
</ul>
|
1107
|
+
|
1108
|
+
<dt>2003-02-23
|
1109
|
+
<dd>
|
1110
|
+
version 2.4.4a
|
1111
|
+
<ul>
|
1112
|
+
<li>extconf.rb �� Ruby 1.8.0 ���
|
1113
|
+
</ul>
|
1114
|
+
|
1115
|
+
<dt>2003-01-29
|
1116
|
+
<dd>
|
1117
|
+
version 2.4.4
|
1118
|
+
<ul>
|
1119
|
+
<li>Mysql::OPT_LOCAL_INFILE ���ɲá�
|
1120
|
+
<li>extconf.rb �� --with-mysql-config ���ץ������ɲ�
|
1121
|
+
<li>extconf.rb ���˼�ʥ饤�֥���ư���Ф���褦�ˤ�����
|
1122
|
+
</ul>
|
1123
|
+
|
1124
|
+
<dt>2003-01-05
|
1125
|
+
<dd>
|
1126
|
+
version 2.4.3c
|
1127
|
+
<ul>
|
1128
|
+
<li>�Ѹ�� README �β��ǡ�Paul DuBois �˴��ա�
|
1129
|
+
</ul>
|
1130
|
+
|
1131
|
+
<dt>2002-12-24
|
1132
|
+
<dd>
|
1133
|
+
version 2.4.3b
|
1134
|
+
<ul>
|
1135
|
+
<li>extconf.rb �� Ruby 1.6.8 ���
|
1136
|
+
</ul>
|
1137
|
+
|
1138
|
+
<dt>2002-11-07
|
1139
|
+
<dd>
|
1140
|
+
version 2.4.3a
|
1141
|
+
<ul>
|
1142
|
+
<li>���顼�������ʣ�������뤳�Ȥ�����Х�������
|
1143
|
+
</ul>
|
1144
|
+
|
1145
|
+
<dt>2002-09-10
|
1146
|
+
<dd>
|
1147
|
+
version 2.4.3
|
1148
|
+
<ul>
|
1149
|
+
<li>ER_ �ǻϤޤ륨�顼����ˤ��б�������
|
1150
|
+
<li>errmsg.h �� mysqld_error.h ���鼫ưŪ�˥��顼������������褦�ˤ�����
|
1151
|
+
</ul>
|
1152
|
+
|
1153
|
+
<dt>2002-01-07
|
1154
|
+
<dd>
|
1155
|
+
version 2.4.2
|
1156
|
+
<ul>
|
1157
|
+
<li>MySQL 4.0 ���
|
1158
|
+
<li>uint �� unsigned int ���ѹ���mswin�б��ˡ�
|
1159
|
+
</ul>
|
1160
|
+
|
1161
|
+
<dt>2001-12-02
|
1162
|
+
<dd>
|
1163
|
+
version 2.4.1
|
1164
|
+
<ul>
|
1165
|
+
<li>���פ� extern ������Cygiwn�б��ˡ�
|
1166
|
+
<li>extconf.rb �Υ��ץ������ѹ���
|
1167
|
+
</ul>
|
1168
|
+
|
1169
|
+
<dt>2001-10-12
|
1170
|
+
<dd>
|
1171
|
+
version 2.4.0
|
1172
|
+
<ul>
|
1173
|
+
<li>Ruby 1.7 �����
|
1174
|
+
<li>Mysql::debug(), Mysql#change_user(), Mysql#character_set_name(),
|
1175
|
+
Mysql#dump_debug_info() ���ɲá�
|
1176
|
+
</ul>
|
1177
|
+
|
1178
|
+
<dt>2001-03-25
|
1179
|
+
<dd>
|
1180
|
+
version 2.3.2a
|
1181
|
+
<ul>
|
1182
|
+
<li>t/50update.rb ��Ƚ����ˡ���ѹ�
|
1183
|
+
</ul>
|
1184
|
+
|
1185
|
+
<dt>2001-03-19
|
1186
|
+
<dd>
|
1187
|
+
version 2.3.2
|
1188
|
+
<ul>
|
1189
|
+
<li>�����(20��) MysqlRes ���֥������Ȥ����������顢����Ū�� GC ����褦�ˤ�����
|
1190
|
+
<li>Mysql#escape_string(), Mysql#quote() �� mysql_real_escape_string() ����Ѥ���褦�ˤ�����
|
1191
|
+
</ul>
|
1192
|
+
|
1193
|
+
<dt>2000-09-02
|
1194
|
+
<dd>
|
1195
|
+
version 2.3.1
|
1196
|
+
<ul>
|
1197
|
+
<li>Mysql#initialize() ���ɲ�(Ruby 1.6 �б�)��
|
1198
|
+
</ul>
|
1199
|
+
|
1200
|
+
<dt>2000-07-22
|
1201
|
+
<dd>
|
1202
|
+
version 2.3.0
|
1203
|
+
<ul>
|
1204
|
+
<li>MysqlRes#free() ���ɲá�
|
1205
|
+
<li>Mysql#initialize(), MysqlRes#initialize() ��ͭ���ˤ�����
|
1206
|
+
<li>true ���֤��Ƥ�����åɤ�self ���֤��褦�ˤ�����
|
1207
|
+
</ul>
|
1208
|
+
|
1209
|
+
<dt>2000-05-27
|
1210
|
+
<dd>
|
1211
|
+
version 2.2.1a
|
1212
|
+
<ul>
|
1213
|
+
<li>test.rb ������ǥѥ��������Ǥ���褦�ˤ�����
|
1214
|
+
</ul>
|
1215
|
+
|
1216
|
+
<dt>2000-05-10
|
1217
|
+
<dd>
|
1218
|
+
version 2.2.1
|
1219
|
+
<ul>
|
1220
|
+
<li>�ǡ����١�������Υǡ�����ֱ������줿��ʸ������ѹ���
|
1221
|
+
<li>�ƥ��ȥ�����ץ��ɲá�
|
1222
|
+
</ul>
|
1223
|
+
|
1224
|
+
<dt>1999-09-28
|
1225
|
+
<dd>
|
1226
|
+
version 2.2.0
|
1227
|
+
<ul>
|
1228
|
+
<li>Mysql::init(), Mysql#options(), Mysql#real_connect() ���ɲá�
|
1229
|
+
<li>Mysql#field_count ���ɲá�
|
1230
|
+
</ul>
|
1231
|
+
|
1232
|
+
<dt>1999-09-24
|
1233
|
+
<dd>
|
1234
|
+
version 2.1.7
|
1235
|
+
<ul>
|
1236
|
+
<li>MySQL 3.22.26 �����
|
1237
|
+
<li>MysqlField#inspect() ���ɲá�
|
1238
|
+
</ul>
|
1239
|
+
|
1240
|
+
<dt>1999-06-17
|
1241
|
+
<dd>
|
1242
|
+
version 2.1.6
|
1243
|
+
<ul>
|
1244
|
+
<li>fetch_field ������뤳�Ȥ����ä���
|
1245
|
+
</ul>
|
1246
|
+
|
1247
|
+
<dt>1999-06-12
|
1248
|
+
<dd>
|
1249
|
+
version 2.1.5
|
1250
|
+
<ul>
|
1251
|
+
<li>Ruby 1.3.x �б�������Ⱦü���ä���
|
1252
|
+
</ul>
|
1253
|
+
|
1254
|
+
<dt>1999-05-30
|
1255
|
+
<dd>
|
1256
|
+
version 2.1.4
|
1257
|
+
<ul>
|
1258
|
+
<li>Ruby 1.3.x �����
|
1259
|
+
</ul>
|
1260
|
+
|
1261
|
+
<dt>1999-04-13
|
1262
|
+
<dd>
|
1263
|
+
version 2.1.3
|
1264
|
+
<ul>
|
1265
|
+
<li>fetch_hash/each_hash �ΰ����ο���������ְ�äƤ�����
|
1266
|
+
<li>fetch_hash/each_hash �� true ����ꤷ�����ι���̾���礱�Ƥ�����
|
1267
|
+
<li>NULL�ͤι��ܤ������ fetch_hash/each_hash ��ư�������������ä���
|
1268
|
+
</ul>
|
1269
|
+
|
1270
|
+
<dt>1999-02-01
|
1271
|
+
<dd>
|
1272
|
+
version 2.1.2
|
1273
|
+
<ul>
|
1274
|
+
<li>Mysql#refresh() �� Mysql::REFRESH_* ���ɲá�
|
1275
|
+
<li>MySQL 3.21.xx �ˤ��б�(�������Ĥ���)��
|
1276
|
+
</ul>
|
1277
|
+
|
1278
|
+
<dt>1999-01-24
|
1279
|
+
<dd>
|
1280
|
+
version 2.1.1
|
1281
|
+
<ul>
|
1282
|
+
<li>MysqlError#error(), MysqlError#errno() ���ɲá�
|
1283
|
+
<li>MysqlError::CR_* ���ɲá�
|
1284
|
+
</ul>
|
1285
|
+
|
1286
|
+
<dt>1999-01-17
|
1287
|
+
<dd>
|
1288
|
+
version 2.1
|
1289
|
+
<ul>
|
1290
|
+
<li>fetch_hash, each_hash �� C �������˰�ư��
|
1291
|
+
<li>MysqlField#hash() ���ɲá�
|
1292
|
+
<li>escape_string, get_client_info �֥������ȥ�åɤȤ��Ƥ�Ȥ���褦�ˤ�����
|
1293
|
+
</ul>
|
1294
|
+
|
1295
|
+
<dt>1998-11-29
|
1296
|
+
<dd>
|
1297
|
+
version 2.0.1
|
1298
|
+
<ul>
|
1299
|
+
<li>fetch_hash, each_hash �� with_table �������ɲá�
|
1300
|
+
<li>��äѤ� get_* ��å�̾�� C API ��Ʊ���ˤ�����
|
1301
|
+
<li>mysql-compat.rb �� alias �ǽ�ľ������
|
1302
|
+
<li>Mysql ����� CLIENT_* �� MysqlField ������ˤʤäƤ�����
|
1303
|
+
</ul>
|
1304
|
+
|
1305
|
+
<dt>1998-11-15
|
1306
|
+
<dd>
|
1307
|
+
version 2.0
|
1308
|
+
<ul>
|
1309
|
+
<li>��å�̾�� C API ��Ʊ���ˤ�����
|
1310
|
+
<li>C++ �Ǥ��̤�褦�˽�ľ������
|
1311
|
+
</ul>
|
1312
|
+
|
1313
|
+
<dt>1998-08-13
|
1314
|
+
<dd>
|
1315
|
+
version 1.0
|
1316
|
+
<ul>
|
1317
|
+
<li>����������
|
1318
|
+
</ul>
|
1319
|
+
</dl>
|
1320
|
+
|
1321
|
+
<h2>���</h2>
|
1322
|
+
<p>
|
1323
|
+
e-mail: �Ȥߤ��ޤ��Ҥ� <a href="mailto:tommy@tmtm.org">tommy@tmtm.org</a>
|
1324
|
+
<a href="http://tmtm.org">http://tmtm.org</a>
|
1325
|
+
</p>
|
1326
|
+
<hr>
|
1327
|
+
<address><a href="mailto:tommy@tmtm.org">TOMITA Masahiro</a></address>
|
1328
|
+
<!-- Created: Sun Aug 29 11:52:09 JST 2004 -->
|
1329
|
+
<!-- hhmts start -->
|
1330
|
+
Last modified: Sun Feb 1 17:48:26 JST 2009
|
1331
|
+
<!-- hhmts end -->
|
1332
|
+
</body>
|
1333
|
+
</html>
|