Showing 7 changed files with 185 additions and 1020 deletions
+8
Changes
... ...
@@ -1,3 +1,11 @@
1
+0.1663
2
+    - added bind_param_option can set bind_param option
3
+      to insert(), update(), delete(), select(), insert_at(),
4
+      update_at(), delete_at(), select_at(), delete_all(), update_all()
5
+0.1662
6
+    - removed EXPERIMENTAL DBIx::Custom::Model column_clause
7
+    - added EXPERIMENTAL column()
8
+    - added EXPERIMENTAL mycolumn()
1 9
 0.1661
2 10
     - added EXPERIMENTAL DBIx::Custom::Model table_alias attribute
3 11
     - added EXPERIMENTAL DBIx::Custom::Model mycolumn()
-909
Makefile.old
... ...
@@ -1,909 +0,0 @@
1
-# This Makefile is for the DBIx::Custom extension to perl.
2
-#
3
-# It was generated automatically by MakeMaker version
4
-# 6.56 (Revision: 65600) from the contents of
5
-# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
6
-#
7
-#       ANY CHANGES MADE HERE WILL BE LOST!
8
-#
9
-#   MakeMaker ARGV: ()
10
-#
11
-
12
-#   MakeMaker Parameters:
13
-
14
-#     ABSTRACT_FROM => q[lib/DBIx/Custom.pm]
15
-#     AUTHOR => q[Yuki Kimoto <kimoto.yuki@gmail.com>]
16
-#     BUILD_REQUIRES => {  }
17
-#     LICENSE => q[perl]
18
-#     NAME => q[DBIx::Custom]
19
-#     PL_FILES => {  }
20
-#     PREREQ_PM => { Test::More=>q[0], Object::Simple=>q[3.0616], DBD::SQLite=>q[1.25], DBI=>q[1.605] }
21
-#     VERSION_FROM => q[lib/DBIx/Custom.pm]
22
-#     clean => { FILES=>q[DBIx-Custom-*] }
23
-#     dist => { COMPRESS=>q[gzip -9f], SUFFIX=>q[gz] }
24
-
25
-# --- MakeMaker post_initialize section:
26
-
27
-
28
-# --- MakeMaker const_config section:
29
-
30
-# These definitions are from config.sh (via /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Config.pm).
31
-# They may have been overridden via Makefile.PL or on the command line.
32
-AR = ar
33
-CC = gcc
34
-CCCDLFLAGS = -fPIC
35
-CCDLFLAGS = -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE
36
-DLEXT = so
37
-DLSRC = dl_dlopen.xs
38
-EXE_EXT = 
39
-FULL_AR = /usr/bin/ar
40
-LD = gcc
41
-LDDLFLAGS = -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib
42
-LDFLAGS =  -L/usr/local/lib
43
-LIBC = /lib/libc-2.5.so
44
-LIB_EXT = .a
45
-OBJ_EXT = .o
46
-OSNAME = linux
47
-OSVERS = 2.6.18-53.el5
48
-RANLIB = :
49
-SITELIBEXP = /usr/lib/perl5/site_perl/5.8.8
50
-SITEARCHEXP = /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
51
-SO = so
52
-VENDORARCHEXP = /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
53
-VENDORLIBEXP = /usr/lib/perl5/vendor_perl/5.8.8
54
-
55
-
56
-# --- MakeMaker constants section:
57
-AR_STATIC_ARGS = cr
58
-DIRFILESEP = /
59
-DFSEP = $(DIRFILESEP)
60
-NAME = DBIx::Custom
61
-NAME_SYM = DBIx_Custom
62
-VERSION = 0.1661
63
-VERSION_MACRO = VERSION
64
-VERSION_SYM = 0_1661
65
-DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
66
-XS_VERSION = 0.1661
67
-XS_VERSION_MACRO = XS_VERSION
68
-XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"
69
-INST_ARCHLIB = blib/arch
70
-INST_SCRIPT = blib/script
71
-INST_BIN = blib/bin
72
-INST_LIB = blib/lib
73
-INST_MAN1DIR = blib/man1
74
-INST_MAN3DIR = blib/man3
75
-MAN1EXT = 1
76
-MAN3EXT = 3pm
77
-INSTALLDIRS = site
78
-DESTDIR = 
79
-PREFIX = $(SITEPREFIX)
80
-PERLPREFIX = /usr
81
-SITEPREFIX = /usr
82
-VENDORPREFIX = /usr
83
-INSTALLPRIVLIB = /usr/lib/perl5/5.8.8
84
-DESTINSTALLPRIVLIB = $(DESTDIR)$(INSTALLPRIVLIB)
85
-INSTALLSITELIB = /usr/lib/perl5/site_perl/5.8.8
86
-DESTINSTALLSITELIB = $(DESTDIR)$(INSTALLSITELIB)
87
-INSTALLVENDORLIB = /usr/lib/perl5/vendor_perl/5.8.8
88
-DESTINSTALLVENDORLIB = $(DESTDIR)$(INSTALLVENDORLIB)
89
-INSTALLARCHLIB = /usr/lib/perl5/5.8.8/i386-linux-thread-multi
90
-DESTINSTALLARCHLIB = $(DESTDIR)$(INSTALLARCHLIB)
91
-INSTALLSITEARCH = /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
92
-DESTINSTALLSITEARCH = $(DESTDIR)$(INSTALLSITEARCH)
93
-INSTALLVENDORARCH = /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
94
-DESTINSTALLVENDORARCH = $(DESTDIR)$(INSTALLVENDORARCH)
95
-INSTALLBIN = /usr/bin
96
-DESTINSTALLBIN = $(DESTDIR)$(INSTALLBIN)
97
-INSTALLSITEBIN = /usr/bin
98
-DESTINSTALLSITEBIN = $(DESTDIR)$(INSTALLSITEBIN)
99
-INSTALLVENDORBIN = /usr/bin
100
-DESTINSTALLVENDORBIN = $(DESTDIR)$(INSTALLVENDORBIN)
101
-INSTALLSCRIPT = /usr/bin
102
-DESTINSTALLSCRIPT = $(DESTDIR)$(INSTALLSCRIPT)
103
-INSTALLSITESCRIPT = /usr/bin
104
-DESTINSTALLSITESCRIPT = $(DESTDIR)$(INSTALLSITESCRIPT)
105
-INSTALLVENDORSCRIPT = /usr/bin
106
-DESTINSTALLVENDORSCRIPT = $(DESTDIR)$(INSTALLVENDORSCRIPT)
107
-INSTALLMAN1DIR = /usr/share/man/man1
108
-DESTINSTALLMAN1DIR = $(DESTDIR)$(INSTALLMAN1DIR)
109
-INSTALLSITEMAN1DIR = /usr/share/man/man1
110
-DESTINSTALLSITEMAN1DIR = $(DESTDIR)$(INSTALLSITEMAN1DIR)
111
-INSTALLVENDORMAN1DIR = /usr/share/man/man1
112
-DESTINSTALLVENDORMAN1DIR = $(DESTDIR)$(INSTALLVENDORMAN1DIR)
113
-INSTALLMAN3DIR = /usr/share/man/man3
114
-DESTINSTALLMAN3DIR = $(DESTDIR)$(INSTALLMAN3DIR)
115
-INSTALLSITEMAN3DIR = /usr/share/man/man3
116
-DESTINSTALLSITEMAN3DIR = $(DESTDIR)$(INSTALLSITEMAN3DIR)
117
-INSTALLVENDORMAN3DIR = /usr/share/man/man3
118
-DESTINSTALLVENDORMAN3DIR = $(DESTDIR)$(INSTALLVENDORMAN3DIR)
119
-PERL_LIB = /usr/lib/perl5/5.8.8
120
-PERL_ARCHLIB = /usr/lib/perl5/5.8.8/i386-linux-thread-multi
121
-LIBPERL_A = libperl.a
122
-FIRST_MAKEFILE = Makefile
123
-MAKEFILE_OLD = Makefile.old
124
-MAKE_APERL_FILE = Makefile.aperl
125
-PERLMAINCC = $(CC)
126
-PERL_INC = /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE
127
-PERL = /usr/bin/perl
128
-FULLPERL = /usr/bin/perl
129
-ABSPERL = $(PERL)
130
-PERLRUN = $(PERL)
131
-FULLPERLRUN = $(FULLPERL)
132
-ABSPERLRUN = $(ABSPERL)
133
-PERLRUNINST = $(PERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
134
-FULLPERLRUNINST = $(FULLPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
135
-ABSPERLRUNINST = $(ABSPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)"
136
-PERL_CORE = 0
137
-PERM_DIR = 755
138
-PERM_RW = 644
139
-PERM_RWX = 755
140
-
141
-MAKEMAKER   = /home/kimoto/perl5/lib/perl5/ExtUtils/MakeMaker.pm
142
-MM_VERSION  = 6.56
143
-MM_REVISION = 65600
144
-
145
-# FULLEXT = Pathname for extension directory (eg Foo/Bar/Oracle).
146
-# BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg Oracle)
147
-# PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar)
148
-# DLBASE  = Basename part of dynamic library. May be just equal BASEEXT.
149
-MAKE = make
150
-FULLEXT = DBIx/Custom
151
-BASEEXT = Custom
152
-PARENT_NAME = DBIx
153
-DLBASE = $(BASEEXT)
154
-VERSION_FROM = lib/DBIx/Custom.pm
155
-OBJECT = 
156
-LDFROM = $(OBJECT)
157
-LINKTYPE = dynamic
158
-BOOTDEP = 
159
-
160
-# Handy lists of source code files:
161
-XS_FILES = 
162
-C_FILES  = 
163
-O_FILES  = 
164
-H_FILES  = 
165
-MAN1PODS = 
166
-MAN3PODS = lib/DBIx/Custom.pm \
167
-	lib/DBIx/Custom/Guide.pod \
168
-	lib/DBIx/Custom/Guide/Ja.pod \
169
-	lib/DBIx/Custom/Model.pm \
170
-	lib/DBIx/Custom/MySQL.pm \
171
-	lib/DBIx/Custom/Query.pm \
172
-	lib/DBIx/Custom/QueryBuilder.pm \
173
-	lib/DBIx/Custom/Result.pm \
174
-	lib/DBIx/Custom/SQLite.pm \
175
-	lib/DBIx/Custom/Tag.pm \
176
-	lib/DBIx/Custom/Util.pm \
177
-	lib/DBIx/Custom/Where.pm
178
-
179
-# Where is the Config information that we are using/depend on
180
-CONFIGDEP = $(PERL_ARCHLIB)$(DFSEP)Config.pm $(PERL_INC)$(DFSEP)config.h
181
-
182
-# Where to build things
183
-INST_LIBDIR      = $(INST_LIB)/DBIx
184
-INST_ARCHLIBDIR  = $(INST_ARCHLIB)/DBIx
185
-
186
-INST_AUTODIR     = $(INST_LIB)/auto/$(FULLEXT)
187
-INST_ARCHAUTODIR = $(INST_ARCHLIB)/auto/$(FULLEXT)
188
-
189
-INST_STATIC      = 
190
-INST_DYNAMIC     = 
191
-INST_BOOT        = 
192
-
193
-# Extra linker info
194
-EXPORT_LIST        = 
195
-PERL_ARCHIVE       = 
196
-PERL_ARCHIVE_AFTER = 
197
-
198
-
199
-TO_INST_PM = lib/DBIx/Custom.pm \
200
-	lib/DBIx/Custom/Guide.pod \
201
-	lib/DBIx/Custom/Guide/Ja.pod \
202
-	lib/DBIx/Custom/Model.pm \
203
-	lib/DBIx/Custom/MySQL.pm \
204
-	lib/DBIx/Custom/Query.pm \
205
-	lib/DBIx/Custom/QueryBuilder.pm \
206
-	lib/DBIx/Custom/Result.pm \
207
-	lib/DBIx/Custom/SQLite.pm \
208
-	lib/DBIx/Custom/Tag.pm \
209
-	lib/DBIx/Custom/Util.pm \
210
-	lib/DBIx/Custom/Where.pm
211
-
212
-PM_TO_BLIB = lib/DBIx/Custom/Tag.pm \
213
-	blib/lib/DBIx/Custom/Tag.pm \
214
-	lib/DBIx/Custom/Guide/Ja.pod \
215
-	blib/lib/DBIx/Custom/Guide/Ja.pod \
216
-	lib/DBIx/Custom/Util.pm \
217
-	blib/lib/DBIx/Custom/Util.pm \
218
-	lib/DBIx/Custom/Guide.pod \
219
-	blib/lib/DBIx/Custom/Guide.pod \
220
-	lib/DBIx/Custom/Where.pm \
221
-	blib/lib/DBIx/Custom/Where.pm \
222
-	lib/DBIx/Custom/Model.pm \
223
-	blib/lib/DBIx/Custom/Model.pm \
224
-	lib/DBIx/Custom/MySQL.pm \
225
-	blib/lib/DBIx/Custom/MySQL.pm \
226
-	lib/DBIx/Custom.pm \
227
-	blib/lib/DBIx/Custom.pm \
228
-	lib/DBIx/Custom/Query.pm \
229
-	blib/lib/DBIx/Custom/Query.pm \
230
-	lib/DBIx/Custom/SQLite.pm \
231
-	blib/lib/DBIx/Custom/SQLite.pm \
232
-	lib/DBIx/Custom/Result.pm \
233
-	blib/lib/DBIx/Custom/Result.pm \
234
-	lib/DBIx/Custom/QueryBuilder.pm \
235
-	blib/lib/DBIx/Custom/QueryBuilder.pm
236
-
237
-
238
-# --- MakeMaker platform_constants section:
239
-MM_Unix_VERSION = 6.56
240
-PERL_MALLOC_DEF = -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc
241
-
242
-
243
-# --- MakeMaker tool_autosplit section:
244
-# Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto
245
-AUTOSPLITFILE = $(ABSPERLRUN)  -e 'use AutoSplit;  autosplit($$ARGV[0], $$ARGV[1], 0, 1, 1)' --
246
-
247
-
248
-
249
-# --- MakeMaker tool_xsubpp section:
250
-
251
-
252
-# --- MakeMaker tools_other section:
253
-SHELL = /bin/sh
254
-CHMOD = chmod
255
-CP = cp
256
-MV = mv
257
-NOOP = $(TRUE)
258
-NOECHO = @
259
-RM_F = rm -f
260
-RM_RF = rm -rf
261
-TEST_F = test -f
262
-TOUCH = touch
263
-UMASK_NULL = umask 0
264
-DEV_NULL = > /dev/null 2>&1
265
-MKPATH = $(ABSPERLRUN) -MExtUtils::Command -e 'mkpath' --
266
-EQUALIZE_TIMESTAMP = $(ABSPERLRUN) -MExtUtils::Command -e 'eqtime' --
267
-FALSE = false
268
-TRUE = true
269
-ECHO = echo
270
-ECHO_N = echo -n
271
-UNINST = 0
272
-VERBINST = 0
273
-MOD_INSTALL = $(ABSPERLRUN) -MExtUtils::Install -e 'install([ from_to => {@ARGV}, verbose => '\''$(VERBINST)'\'', uninstall_shadows => '\''$(UNINST)'\'', dir_mode => '\''$(PERM_DIR)'\'' ]);' --
274
-DOC_INSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'perllocal_install' --
275
-UNINSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'uninstall' --
276
-WARN_IF_OLD_PACKLIST = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'warn_if_old_packlist' --
277
-MACROSTART = 
278
-MACROEND = 
279
-USEMAKEFILE = -f
280
-FIXIN = $(ABSPERLRUN) -MExtUtils::MY -e 'MY->fixin(shift)' --
281
-
282
-
283
-# --- MakeMaker makemakerdflt section:
284
-makemakerdflt : all
285
-	$(NOECHO) $(NOOP)
286
-
287
-
288
-# --- MakeMaker dist section:
289
-TAR = tar
290
-TARFLAGS = cvf
291
-ZIP = zip
292
-ZIPFLAGS = -r
293
-COMPRESS = gzip -9f
294
-SUFFIX = gz
295
-SHAR = shar
296
-PREOP = $(NOECHO) $(NOOP)
297
-POSTOP = $(NOECHO) $(NOOP)
298
-TO_UNIX = $(NOECHO) $(NOOP)
299
-CI = ci -u
300
-RCS_LABEL = rcs -Nv$(VERSION_SYM): -q
301
-DIST_CP = best
302
-DIST_DEFAULT = tardist
303
-DISTNAME = DBIx-Custom
304
-DISTVNAME = DBIx-Custom-0.1661
305
-
306
-
307
-# --- MakeMaker macro section:
308
-
309
-
310
-# --- MakeMaker depend section:
311
-
312
-
313
-# --- MakeMaker cflags section:
314
-
315
-
316
-# --- MakeMaker const_loadlibs section:
317
-
318
-
319
-# --- MakeMaker const_cccmd section:
320
-
321
-
322
-# --- MakeMaker post_constants section:
323
-
324
-
325
-# --- MakeMaker pasthru section:
326
-
327
-PASTHRU = LIBPERL_A="$(LIBPERL_A)"\
328
-	LINKTYPE="$(LINKTYPE)"\
329
-	PREFIX="$(PREFIX)"
330
-
331
-
332
-# --- MakeMaker special_targets section:
333
-.SUFFIXES : .xs .c .C .cpp .i .s .cxx .cc $(OBJ_EXT)
334
-
335
-.PHONY: all config static dynamic test linkext manifest blibdirs clean realclean disttest distdir
336
-
337
-
338
-
339
-# --- MakeMaker c_o section:
340
-
341
-
342
-# --- MakeMaker xs_c section:
343
-
344
-
345
-# --- MakeMaker xs_o section:
346
-
347
-
348
-# --- MakeMaker top_targets section:
349
-all :: pure_all manifypods
350
-	$(NOECHO) $(NOOP)
351
-
352
-
353
-pure_all :: config pm_to_blib subdirs linkext
354
-	$(NOECHO) $(NOOP)
355
-
356
-subdirs :: $(MYEXTLIB)
357
-	$(NOECHO) $(NOOP)
358
-
359
-config :: $(FIRST_MAKEFILE) blibdirs
360
-	$(NOECHO) $(NOOP)
361
-
362
-help :
363
-	perldoc ExtUtils::MakeMaker
364
-
365
-
366
-# --- MakeMaker blibdirs section:
367
-blibdirs : $(INST_LIBDIR)$(DFSEP).exists $(INST_ARCHLIB)$(DFSEP).exists $(INST_AUTODIR)$(DFSEP).exists $(INST_ARCHAUTODIR)$(DFSEP).exists $(INST_BIN)$(DFSEP).exists $(INST_SCRIPT)$(DFSEP).exists $(INST_MAN1DIR)$(DFSEP).exists $(INST_MAN3DIR)$(DFSEP).exists
368
-	$(NOECHO) $(NOOP)
369
-
370
-# Backwards compat with 6.18 through 6.25
371
-blibdirs.ts : blibdirs
372
-	$(NOECHO) $(NOOP)
373
-
374
-$(INST_LIBDIR)$(DFSEP).exists :: Makefile.PL
375
-	$(NOECHO) $(MKPATH) $(INST_LIBDIR)
376
-	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_LIBDIR)
377
-	$(NOECHO) $(TOUCH) $(INST_LIBDIR)$(DFSEP).exists
378
-
379
-$(INST_ARCHLIB)$(DFSEP).exists :: Makefile.PL
380
-	$(NOECHO) $(MKPATH) $(INST_ARCHLIB)
381
-	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHLIB)
382
-	$(NOECHO) $(TOUCH) $(INST_ARCHLIB)$(DFSEP).exists
383
-
384
-$(INST_AUTODIR)$(DFSEP).exists :: Makefile.PL
385
-	$(NOECHO) $(MKPATH) $(INST_AUTODIR)
386
-	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_AUTODIR)
387
-	$(NOECHO) $(TOUCH) $(INST_AUTODIR)$(DFSEP).exists
388
-
389
-$(INST_ARCHAUTODIR)$(DFSEP).exists :: Makefile.PL
390
-	$(NOECHO) $(MKPATH) $(INST_ARCHAUTODIR)
391
-	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHAUTODIR)
392
-	$(NOECHO) $(TOUCH) $(INST_ARCHAUTODIR)$(DFSEP).exists
393
-
394
-$(INST_BIN)$(DFSEP).exists :: Makefile.PL
395
-	$(NOECHO) $(MKPATH) $(INST_BIN)
396
-	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_BIN)
397
-	$(NOECHO) $(TOUCH) $(INST_BIN)$(DFSEP).exists
398
-
399
-$(INST_SCRIPT)$(DFSEP).exists :: Makefile.PL
400
-	$(NOECHO) $(MKPATH) $(INST_SCRIPT)
401
-	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_SCRIPT)
402
-	$(NOECHO) $(TOUCH) $(INST_SCRIPT)$(DFSEP).exists
403
-
404
-$(INST_MAN1DIR)$(DFSEP).exists :: Makefile.PL
405
-	$(NOECHO) $(MKPATH) $(INST_MAN1DIR)
406
-	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN1DIR)
407
-	$(NOECHO) $(TOUCH) $(INST_MAN1DIR)$(DFSEP).exists
408
-
409
-$(INST_MAN3DIR)$(DFSEP).exists :: Makefile.PL
410
-	$(NOECHO) $(MKPATH) $(INST_MAN3DIR)
411
-	$(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN3DIR)
412
-	$(NOECHO) $(TOUCH) $(INST_MAN3DIR)$(DFSEP).exists
413
-
414
-
415
-
416
-# --- MakeMaker linkext section:
417
-
418
-linkext :: $(LINKTYPE)
419
-	$(NOECHO) $(NOOP)
420
-
421
-
422
-# --- MakeMaker dlsyms section:
423
-
424
-
425
-# --- MakeMaker dynamic section:
426
-
427
-dynamic :: $(FIRST_MAKEFILE) $(INST_DYNAMIC) $(INST_BOOT)
428
-	$(NOECHO) $(NOOP)
429
-
430
-
431
-# --- MakeMaker dynamic_bs section:
432
-
433
-BOOTSTRAP =
434
-
435
-
436
-# --- MakeMaker dynamic_lib section:
437
-
438
-
439
-# --- MakeMaker static section:
440
-
441
-## $(INST_PM) has been moved to the all: target.
442
-## It remains here for awhile to allow for old usage: "make static"
443
-static :: $(FIRST_MAKEFILE) $(INST_STATIC)
444
-	$(NOECHO) $(NOOP)
445
-
446
-
447
-# --- MakeMaker static_lib section:
448
-
449
-
450
-# --- MakeMaker manifypods section:
451
-
452
-POD2MAN_EXE = $(PERLRUN) "-MExtUtils::Command::MM" -e pod2man "--"
453
-POD2MAN = $(POD2MAN_EXE)
454
-
455
-
456
-manifypods : pure_all  \
457
-	lib/DBIx/Custom/Tag.pm \
458
-	lib/DBIx/Custom/Guide/Ja.pod \
459
-	lib/DBIx/Custom/Util.pm \
460
-	lib/DBIx/Custom/Guide.pod \
461
-	lib/DBIx/Custom/Where.pm \
462
-	lib/DBIx/Custom/Model.pm \
463
-	lib/DBIx/Custom/MySQL.pm \
464
-	lib/DBIx/Custom.pm \
465
-	lib/DBIx/Custom/Query.pm \
466
-	lib/DBIx/Custom/SQLite.pm \
467
-	lib/DBIx/Custom/Result.pm \
468
-	lib/DBIx/Custom/QueryBuilder.pm
469
-	$(NOECHO) $(POD2MAN) --section=3 --perm_rw=$(PERM_RW) \
470
-	  lib/DBIx/Custom/Tag.pm $(INST_MAN3DIR)/DBIx::Custom::Tag.$(MAN3EXT) \
471
-	  lib/DBIx/Custom/Guide/Ja.pod $(INST_MAN3DIR)/DBIx::Custom::Guide::Ja.$(MAN3EXT) \
472
-	  lib/DBIx/Custom/Util.pm $(INST_MAN3DIR)/DBIx::Custom::Util.$(MAN3EXT) \
473
-	  lib/DBIx/Custom/Guide.pod $(INST_MAN3DIR)/DBIx::Custom::Guide.$(MAN3EXT) \
474
-	  lib/DBIx/Custom/Where.pm $(INST_MAN3DIR)/DBIx::Custom::Where.$(MAN3EXT) \
475
-	  lib/DBIx/Custom/Model.pm $(INST_MAN3DIR)/DBIx::Custom::Model.$(MAN3EXT) \
476
-	  lib/DBIx/Custom/MySQL.pm $(INST_MAN3DIR)/DBIx::Custom::MySQL.$(MAN3EXT) \
477
-	  lib/DBIx/Custom.pm $(INST_MAN3DIR)/DBIx::Custom.$(MAN3EXT) \
478
-	  lib/DBIx/Custom/Query.pm $(INST_MAN3DIR)/DBIx::Custom::Query.$(MAN3EXT) \
479
-	  lib/DBIx/Custom/SQLite.pm $(INST_MAN3DIR)/DBIx::Custom::SQLite.$(MAN3EXT) \
480
-	  lib/DBIx/Custom/Result.pm $(INST_MAN3DIR)/DBIx::Custom::Result.$(MAN3EXT) \
481
-	  lib/DBIx/Custom/QueryBuilder.pm $(INST_MAN3DIR)/DBIx::Custom::QueryBuilder.$(MAN3EXT) 
482
-
483
-
484
-
485
-
486
-# --- MakeMaker processPL section:
487
-
488
-
489
-# --- MakeMaker installbin section:
490
-
491
-
492
-# --- MakeMaker subdirs section:
493
-
494
-# The default clean, realclean and test targets in this Makefile
495
-# have automatically been given entries for each subdir.
496
-
497
-
498
-subdirs ::
499
-	$(NOECHO) cd DBIx-Custom-0.1660 && $(MAKE) $(USEMAKEFILE) $(FIRST_MAKEFILE) all $(PASTHRU)
500
-
501
-
502
-# --- MakeMaker clean_subdirs section:
503
-clean_subdirs :
504
-	$(ABSPERLRUN)  -e 'chdir '\''DBIx-Custom-0.1660'\'';  system '\''$(MAKE) clean'\'' if -f '\''$(FIRST_MAKEFILE)'\'';' --
505
-
506
-
507
-# --- MakeMaker clean section:
508
-
509
-# Delete temporary files but do not touch installed files. We don't delete
510
-# the Makefile here so a later make realclean still has a makefile to use.
511
-
512
-clean :: clean_subdirs
513
-	- $(RM_F) \
514
-	  *$(LIB_EXT) core \
515
-	  core.[0-9] $(INST_ARCHAUTODIR)/extralibs.all \
516
-	  core.[0-9][0-9] $(BASEEXT).bso \
517
-	  pm_to_blib.ts core.[0-9][0-9][0-9][0-9] \
518
-	  $(BASEEXT).x $(BOOTSTRAP) \
519
-	  perl$(EXE_EXT) tmon.out \
520
-	  *$(OBJ_EXT) pm_to_blib \
521
-	  $(INST_ARCHAUTODIR)/extralibs.ld blibdirs.ts \
522
-	  core.[0-9][0-9][0-9][0-9][0-9] *perl.core \
523
-	  core.*perl.*.? $(MAKE_APERL_FILE) \
524
-	  $(BASEEXT).def perl \
525
-	  core.[0-9][0-9][0-9] mon.out \
526
-	  lib$(BASEEXT).def perl.exe \
527
-	  perlmain.c so_locations \
528
-	  $(BASEEXT).exp 
529
-	- $(RM_RF) \
530
-	  DBIx-Custom-* blib 
531
-	- $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL)
532
-
533
-
534
-# --- MakeMaker realclean_subdirs section:
535
-realclean_subdirs :
536
-	- $(ABSPERLRUN)  -e 'chdir '\''DBIx-Custom-0.1660'\'';  system '\''$(MAKE) $(USEMAKEFILE) $(MAKEFILE_OLD) realclean'\'' if -f '\''$(MAKEFILE_OLD)'\'';' --
537
-	- $(ABSPERLRUN)  -e 'chdir '\''DBIx-Custom-0.1660'\'';  system '\''$(MAKE) $(USEMAKEFILE) $(FIRST_MAKEFILE) realclean'\'' if -f '\''$(FIRST_MAKEFILE)'\'';' --
538
-
539
-
540
-# --- MakeMaker realclean section:
541
-# Delete temporary files (via clean) and also delete dist files
542
-realclean purge ::  clean realclean_subdirs
543
-	- $(RM_F) \
544
-	  $(MAKEFILE_OLD) $(FIRST_MAKEFILE) 
545
-	- $(RM_RF) \
546
-	  $(DISTVNAME) 
547
-
548
-
549
-# --- MakeMaker metafile section:
550
-metafile : create_distdir
551
-	$(NOECHO) $(ECHO) Generating META.yml
552
-	$(NOECHO) $(ECHO) '--- #YAML:1.0' > META_new.yml
553
-	$(NOECHO) $(ECHO) 'name:               DBIx-Custom' >> META_new.yml
554
-	$(NOECHO) $(ECHO) 'version:            0.1661' >> META_new.yml
555
-	$(NOECHO) $(ECHO) 'abstract:           Useful database access, respecting SQL!' >> META_new.yml
556
-	$(NOECHO) $(ECHO) 'author:' >> META_new.yml
557
-	$(NOECHO) $(ECHO) '    - Yuki Kimoto <kimoto.yuki@gmail.com>' >> META_new.yml
558
-	$(NOECHO) $(ECHO) 'license:            perl' >> META_new.yml
559
-	$(NOECHO) $(ECHO) 'distribution_type:  module' >> META_new.yml
560
-	$(NOECHO) $(ECHO) 'configure_requires:' >> META_new.yml
561
-	$(NOECHO) $(ECHO) '    ExtUtils::MakeMaker:  0' >> META_new.yml
562
-	$(NOECHO) $(ECHO) 'build_requires:' >> META_new.yml
563
-	$(NOECHO) $(ECHO) '    ExtUtils::MakeMaker:  0' >> META_new.yml
564
-	$(NOECHO) $(ECHO) 'requires:' >> META_new.yml
565
-	$(NOECHO) $(ECHO) '    DBD::SQLite:     1.25' >> META_new.yml
566
-	$(NOECHO) $(ECHO) '    DBI:             1.605' >> META_new.yml
567
-	$(NOECHO) $(ECHO) '    Object::Simple:  3.0616' >> META_new.yml
568
-	$(NOECHO) $(ECHO) '    Test::More:      0' >> META_new.yml
569
-	$(NOECHO) $(ECHO) 'no_index:' >> META_new.yml
570
-	$(NOECHO) $(ECHO) '    directory:' >> META_new.yml
571
-	$(NOECHO) $(ECHO) '        - t' >> META_new.yml
572
-	$(NOECHO) $(ECHO) '        - inc' >> META_new.yml
573
-	$(NOECHO) $(ECHO) 'generated_by:       ExtUtils::MakeMaker version 6.56' >> META_new.yml
574
-	$(NOECHO) $(ECHO) 'meta-spec:' >> META_new.yml
575
-	$(NOECHO) $(ECHO) '    url:      http://module-build.sourceforge.net/META-spec-v1.4.html' >> META_new.yml
576
-	$(NOECHO) $(ECHO) '    version:  1.4' >> META_new.yml
577
-	-$(NOECHO) $(MV) META_new.yml $(DISTVNAME)/META.yml
578
-
579
-
580
-# --- MakeMaker signature section:
581
-signature :
582
-	cpansign -s
583
-
584
-
585
-# --- MakeMaker dist_basics section:
586
-distclean :: realclean distcheck
587
-	$(NOECHO) $(NOOP)
588
-
589
-distcheck :
590
-	$(PERLRUN) "-MExtUtils::Manifest=fullcheck" -e fullcheck
591
-
592
-skipcheck :
593
-	$(PERLRUN) "-MExtUtils::Manifest=skipcheck" -e skipcheck
594
-
595
-manifest :
596
-	$(PERLRUN) "-MExtUtils::Manifest=mkmanifest" -e mkmanifest
597
-
598
-veryclean : realclean
599
-	$(RM_F) *~ */*~ *.orig */*.orig *.bak */*.bak *.old */*.old 
600
-
601
-
602
-
603
-# --- MakeMaker dist_core section:
604
-
605
-dist : $(DIST_DEFAULT) $(FIRST_MAKEFILE)
606
-	$(NOECHO) $(ABSPERLRUN) -l -e 'print '\''Warning: Makefile possibly out of date with $(VERSION_FROM)'\''' \
607
-	  -e '    if -e '\''$(VERSION_FROM)'\'' and -M '\''$(VERSION_FROM)'\'' < -M '\''$(FIRST_MAKEFILE)'\'';' --
608
-
609
-tardist : $(DISTVNAME).tar$(SUFFIX)
610
-	$(NOECHO) $(NOOP)
611
-
612
-uutardist : $(DISTVNAME).tar$(SUFFIX)
613
-	uuencode $(DISTVNAME).tar$(SUFFIX) $(DISTVNAME).tar$(SUFFIX) > $(DISTVNAME).tar$(SUFFIX)_uu
614
-
615
-$(DISTVNAME).tar$(SUFFIX) : distdir
616
-	$(PREOP)
617
-	$(TO_UNIX)
618
-	$(TAR) $(TARFLAGS) $(DISTVNAME).tar $(DISTVNAME)
619
-	$(RM_RF) $(DISTVNAME)
620
-	$(COMPRESS) $(DISTVNAME).tar
621
-	$(POSTOP)
622
-
623
-zipdist : $(DISTVNAME).zip
624
-	$(NOECHO) $(NOOP)
625
-
626
-$(DISTVNAME).zip : distdir
627
-	$(PREOP)
628
-	$(ZIP) $(ZIPFLAGS) $(DISTVNAME).zip $(DISTVNAME)
629
-	$(RM_RF) $(DISTVNAME)
630
-	$(POSTOP)
631
-
632
-shdist : distdir
633
-	$(PREOP)
634
-	$(SHAR) $(DISTVNAME) > $(DISTVNAME).shar
635
-	$(RM_RF) $(DISTVNAME)
636
-	$(POSTOP)
637
-
638
-
639
-# --- MakeMaker distdir section:
640
-create_distdir :
641
-	$(RM_RF) $(DISTVNAME)
642
-	$(PERLRUN) "-MExtUtils::Manifest=manicopy,maniread" \
643
-		-e "manicopy(maniread(),'$(DISTVNAME)', '$(DIST_CP)');"
644
-
645
-distdir : create_distdir distmeta 
646
-	$(NOECHO) $(NOOP)
647
-
648
-
649
-
650
-# --- MakeMaker dist_test section:
651
-disttest : distdir
652
-	cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL 
653
-	cd $(DISTVNAME) && $(MAKE) $(PASTHRU)
654
-	cd $(DISTVNAME) && $(MAKE) test $(PASTHRU)
655
-
656
-
657
-
658
-# --- MakeMaker dist_ci section:
659
-
660
-ci :
661
-	$(PERLRUN) "-MExtUtils::Manifest=maniread" \
662
-	  -e "@all = keys %{ maniread() };" \
663
-	  -e "print(qq{Executing $(CI) @all\n}); system(qq{$(CI) @all});" \
664
-	  -e "print(qq{Executing $(RCS_LABEL) ...\n}); system(qq{$(RCS_LABEL) @all});"
665
-
666
-
667
-# --- MakeMaker distmeta section:
668
-distmeta : create_distdir metafile
669
-	$(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{META.yml} => q{Module meta-data (added by MakeMaker)}}) } ' \
670
-	  -e '    or print "Could not add META.yml to MANIFEST: $${'\''@'\''}\n"' --
671
-
672
-
673
-
674
-# --- MakeMaker distsignature section:
675
-distsignature : create_distdir
676
-	$(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{SIGNATURE} => q{Public-key signature (added by MakeMaker)}}) } ' \
677
-	  -e '    or print "Could not add SIGNATURE to MANIFEST: $${'\''@'\''}\n"' --
678
-	$(NOECHO) cd $(DISTVNAME) && $(TOUCH) SIGNATURE
679
-	cd $(DISTVNAME) && cpansign -s
680
-
681
-
682
-
683
-# --- MakeMaker install section:
684
-
685
-install :: pure_install doc_install
686
-	$(NOECHO) $(NOOP)
687
-
688
-install_perl :: pure_perl_install doc_perl_install
689
-	$(NOECHO) $(NOOP)
690
-
691
-install_site :: pure_site_install doc_site_install
692
-	$(NOECHO) $(NOOP)
693
-
694
-install_vendor :: pure_vendor_install doc_vendor_install
695
-	$(NOECHO) $(NOOP)
696
-
697
-pure_install :: pure_$(INSTALLDIRS)_install
698
-	$(NOECHO) $(NOOP)
699
-
700
-doc_install :: doc_$(INSTALLDIRS)_install
701
-	$(NOECHO) $(NOOP)
702
-
703
-pure__install : pure_site_install
704
-	$(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
705
-
706
-doc__install : doc_site_install
707
-	$(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
708
-
709
-pure_perl_install :: all
710
-	$(NOECHO) $(MOD_INSTALL) \
711
-		read $(PERL_ARCHLIB)/auto/$(FULLEXT)/.packlist \
712
-		write $(DESTINSTALLARCHLIB)/auto/$(FULLEXT)/.packlist \
713
-		$(INST_LIB) $(DESTINSTALLPRIVLIB) \
714
-		$(INST_ARCHLIB) $(DESTINSTALLARCHLIB) \
715
-		$(INST_BIN) $(DESTINSTALLBIN) \
716
-		$(INST_SCRIPT) $(DESTINSTALLSCRIPT) \
717
-		$(INST_MAN1DIR) $(DESTINSTALLMAN1DIR) \
718
-		$(INST_MAN3DIR) $(DESTINSTALLMAN3DIR)
719
-	$(NOECHO) $(WARN_IF_OLD_PACKLIST) \
720
-		$(SITEARCHEXP)/auto/$(FULLEXT)
721
-
722
-
723
-pure_site_install :: all
724
-	$(NOECHO) $(MOD_INSTALL) \
725
-		read $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist \
726
-		write $(DESTINSTALLSITEARCH)/auto/$(FULLEXT)/.packlist \
727
-		$(INST_LIB) $(DESTINSTALLSITELIB) \
728
-		$(INST_ARCHLIB) $(DESTINSTALLSITEARCH) \
729
-		$(INST_BIN) $(DESTINSTALLSITEBIN) \
730
-		$(INST_SCRIPT) $(DESTINSTALLSITESCRIPT) \
731
-		$(INST_MAN1DIR) $(DESTINSTALLSITEMAN1DIR) \
732
-		$(INST_MAN3DIR) $(DESTINSTALLSITEMAN3DIR)
733
-	$(NOECHO) $(WARN_IF_OLD_PACKLIST) \
734
-		$(PERL_ARCHLIB)/auto/$(FULLEXT)
735
-
736
-pure_vendor_install :: all
737
-	$(NOECHO) $(MOD_INSTALL) \
738
-		read $(VENDORARCHEXP)/auto/$(FULLEXT)/.packlist \
739
-		write $(DESTINSTALLVENDORARCH)/auto/$(FULLEXT)/.packlist \
740
-		$(INST_LIB) $(DESTINSTALLVENDORLIB) \
741
-		$(INST_ARCHLIB) $(DESTINSTALLVENDORARCH) \
742
-		$(INST_BIN) $(DESTINSTALLVENDORBIN) \
743
-		$(INST_SCRIPT) $(DESTINSTALLVENDORSCRIPT) \
744
-		$(INST_MAN1DIR) $(DESTINSTALLVENDORMAN1DIR) \
745
-		$(INST_MAN3DIR) $(DESTINSTALLVENDORMAN3DIR)
746
-
747
-doc_perl_install :: all
748
-	$(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
749
-	-$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
750
-	-$(NOECHO) $(DOC_INSTALL) \
751
-		"Module" "$(NAME)" \
752
-		"installed into" "$(INSTALLPRIVLIB)" \
753
-		LINKTYPE "$(LINKTYPE)" \
754
-		VERSION "$(VERSION)" \
755
-		EXE_FILES "$(EXE_FILES)" \
756
-		>> $(DESTINSTALLARCHLIB)/perllocal.pod
757
-
758
-doc_site_install :: all
759
-	$(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
760
-	-$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
761
-	-$(NOECHO) $(DOC_INSTALL) \
762
-		"Module" "$(NAME)" \
763
-		"installed into" "$(INSTALLSITELIB)" \
764
-		LINKTYPE "$(LINKTYPE)" \
765
-		VERSION "$(VERSION)" \
766
-		EXE_FILES "$(EXE_FILES)" \
767
-		>> $(DESTINSTALLARCHLIB)/perllocal.pod
768
-
769
-doc_vendor_install :: all
770
-	$(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLARCHLIB)/perllocal.pod
771
-	-$(NOECHO) $(MKPATH) $(DESTINSTALLARCHLIB)
772
-	-$(NOECHO) $(DOC_INSTALL) \
773
-		"Module" "$(NAME)" \
774
-		"installed into" "$(INSTALLVENDORLIB)" \
775
-		LINKTYPE "$(LINKTYPE)" \
776
-		VERSION "$(VERSION)" \
777
-		EXE_FILES "$(EXE_FILES)" \
778
-		>> $(DESTINSTALLARCHLIB)/perllocal.pod
779
-
780
-
781
-uninstall :: uninstall_from_$(INSTALLDIRS)dirs
782
-	$(NOECHO) $(NOOP)
783
-
784
-uninstall_from_perldirs ::
785
-	$(NOECHO) $(UNINSTALL) $(PERL_ARCHLIB)/auto/$(FULLEXT)/.packlist
786
-
787
-uninstall_from_sitedirs ::
788
-	$(NOECHO) $(UNINSTALL) $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist
789
-
790
-uninstall_from_vendordirs ::
791
-	$(NOECHO) $(UNINSTALL) $(VENDORARCHEXP)/auto/$(FULLEXT)/.packlist
792
-
793
-
794
-# --- MakeMaker force section:
795
-# Phony target to force checking subdirectories.
796
-FORCE :
797
-	$(NOECHO) $(NOOP)
798
-
799
-
800
-# --- MakeMaker perldepend section:
801
-
802
-
803
-# --- MakeMaker makefile section:
804
-# We take a very conservative approach here, but it's worth it.
805
-# We move Makefile to Makefile.old here to avoid gnu make looping.
806
-$(FIRST_MAKEFILE) : Makefile.PL $(CONFIGDEP)
807
-	$(NOECHO) $(ECHO) "Makefile out-of-date with respect to $?"
808
-	$(NOECHO) $(ECHO) "Cleaning current config before rebuilding Makefile..."
809
-	-$(NOECHO) $(RM_F) $(MAKEFILE_OLD)
810
-	-$(NOECHO) $(MV)   $(FIRST_MAKEFILE) $(MAKEFILE_OLD)
811
-	- $(MAKE) $(USEMAKEFILE) $(MAKEFILE_OLD) clean $(DEV_NULL)
812
-	$(PERLRUN) Makefile.PL 
813
-	$(NOECHO) $(ECHO) "==> Your Makefile has been rebuilt. <=="
814
-	$(NOECHO) $(ECHO) "==> Please rerun the $(MAKE) command.  <=="
815
-	$(FALSE)
816
-
817
-
818
-
819
-# --- MakeMaker staticmake section:
820
-
821
-# --- MakeMaker makeaperl section ---
822
-MAP_TARGET    = perl
823
-FULLPERL      = /usr/bin/perl
824
-
825
-$(MAP_TARGET) :: static $(MAKE_APERL_FILE)
826
-	$(MAKE) $(USEMAKEFILE) $(MAKE_APERL_FILE) $@
827
-
828
-$(MAKE_APERL_FILE) : $(FIRST_MAKEFILE) pm_to_blib
829
-	$(NOECHO) $(ECHO) Writing \"$(MAKE_APERL_FILE)\" for this $(MAP_TARGET)
830
-	$(NOECHO) $(PERLRUNINST) \
831
-		Makefile.PL DIR=DBIx-Custom-0.1660 \
832
-		MAKEFILE=$(MAKE_APERL_FILE) LINKTYPE=static \
833
-		MAKEAPERL=1 NORECURS=1 CCCDLFLAGS=
834
-
835
-
836
-# --- MakeMaker test section:
837
-
838
-TEST_VERBOSE=0
839
-TEST_TYPE=test_$(LINKTYPE)
840
-TEST_FILE = test.pl
841
-TEST_FILES = t/*.t
842
-TESTDB_SW = -d
843
-
844
-testdb :: testdb_$(LINKTYPE)
845
-
846
-test :: $(TEST_TYPE) subdirs-test
847
-
848
-subdirs-test ::
849
-	$(NOECHO) $(NOOP)
850
-
851
-subdirs-test ::
852
-	$(NOECHO) cd DBIx-Custom-0.1660 && $(MAKE) test $(PASTHRU)
853
-
854
-
855
-test_dynamic :: pure_all
856
-	PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e" "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES)
857
-
858
-testdb_dynamic :: pure_all
859
-	PERL_DL_NONLAZY=1 $(FULLPERLRUN) $(TESTDB_SW) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE)
860
-
861
-test_ : test_dynamic
862
-
863
-test_static :: test_dynamic
864
-testdb_static :: testdb_dynamic
865
-
866
-
867
-# --- MakeMaker ppd section:
868
-# Creates a PPD (Perl Package Description) for a binary distribution.
869
-ppd :
870
-	$(NOECHO) $(ECHO) '<SOFTPKG NAME="$(DISTNAME)" VERSION="0.1661">' > $(DISTNAME).ppd
871
-	$(NOECHO) $(ECHO) '    <ABSTRACT>Useful database access, respecting SQL!</ABSTRACT>' >> $(DISTNAME).ppd
872
-	$(NOECHO) $(ECHO) '    <AUTHOR>Yuki Kimoto &lt;kimoto.yuki@gmail.com&gt;</AUTHOR>' >> $(DISTNAME).ppd
873
-	$(NOECHO) $(ECHO) '    <IMPLEMENTATION>' >> $(DISTNAME).ppd
874
-	$(NOECHO) $(ECHO) '        <REQUIRE NAME="DBD::SQLite" VERSION="1.25" />' >> $(DISTNAME).ppd
875
-	$(NOECHO) $(ECHO) '        <REQUIRE NAME="DBI::" VERSION="1.605" />' >> $(DISTNAME).ppd
876
-	$(NOECHO) $(ECHO) '        <REQUIRE NAME="Object::Simple" VERSION="3.0616" />' >> $(DISTNAME).ppd
877
-	$(NOECHO) $(ECHO) '        <REQUIRE NAME="Test::More" />' >> $(DISTNAME).ppd
878
-	$(NOECHO) $(ECHO) '        <ARCHITECTURE NAME="i386-linux-thread-multi-5.8" />' >> $(DISTNAME).ppd
879
-	$(NOECHO) $(ECHO) '        <CODEBASE HREF="" />' >> $(DISTNAME).ppd
880
-	$(NOECHO) $(ECHO) '    </IMPLEMENTATION>' >> $(DISTNAME).ppd
881
-	$(NOECHO) $(ECHO) '</SOFTPKG>' >> $(DISTNAME).ppd
882
-
883
-
884
-# --- MakeMaker pm_to_blib section:
885
-
886
-pm_to_blib : $(FIRST_MAKEFILE) $(TO_INST_PM)
887
-	$(NOECHO) $(ABSPERLRUN) -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\''$(INST_LIB)/auto'\'', q[$(PM_FILTER)], '\''$(PERM_DIR)'\'')' -- \
888
-	  lib/DBIx/Custom/Tag.pm blib/lib/DBIx/Custom/Tag.pm \
889
-	  lib/DBIx/Custom/Guide/Ja.pod blib/lib/DBIx/Custom/Guide/Ja.pod \
890
-	  lib/DBIx/Custom/Util.pm blib/lib/DBIx/Custom/Util.pm \
891
-	  lib/DBIx/Custom/Guide.pod blib/lib/DBIx/Custom/Guide.pod \
892
-	  lib/DBIx/Custom/Where.pm blib/lib/DBIx/Custom/Where.pm \
893
-	  lib/DBIx/Custom/Model.pm blib/lib/DBIx/Custom/Model.pm \
894
-	  lib/DBIx/Custom/MySQL.pm blib/lib/DBIx/Custom/MySQL.pm \
895
-	  lib/DBIx/Custom.pm blib/lib/DBIx/Custom.pm \
896
-	  lib/DBIx/Custom/Query.pm blib/lib/DBIx/Custom/Query.pm \
897
-	  lib/DBIx/Custom/SQLite.pm blib/lib/DBIx/Custom/SQLite.pm \
898
-	  lib/DBIx/Custom/Result.pm blib/lib/DBIx/Custom/Result.pm \
899
-	  lib/DBIx/Custom/QueryBuilder.pm blib/lib/DBIx/Custom/QueryBuilder.pm 
900
-	$(NOECHO) $(TOUCH) pm_to_blib
901
-
902
-
903
-# --- MakeMaker selfdocument section:
904
-
905
-
906
-# --- MakeMaker postamble section:
907
-
908
-
909
-# End.
+60 -23
lib/DBIx/Custom.pm
... ...
@@ -1,6 +1,6 @@
1 1
 package DBIx::Custom;
2 2
 
3
-our $VERSION = '0.1661';
3
+our $VERSION = '0.1663';
4 4
 
5 5
 use 5.008001;
6 6
 use strict;
... ...
@@ -19,6 +19,8 @@ use DBIx::Custom::Tag;
19 19
 use DBIx::Custom::Util;
20 20
 use Encode qw/encode_utf8 decode_utf8/;
21 21
 
22
+our @COMMON_ARGS = qw/table query filter bind_param_option/;
23
+
22 24
 __PACKAGE__->attr(
23 25
     [qw/data_source password pid user/],
24 26
     cache => 1,
... ...
@@ -140,14 +142,15 @@ sub apply_filter {
140 142
     return $self;
141 143
 }
142 144
 
143
-sub method {
144
-    my $self = shift;
145
+sub column {
146
+    my ($self, $table, $columns) = @_;
145 147
     
146
-    # Merge
147
-    my $methods = ref $_[0] eq 'HASH' ? $_[0] : {@_};
148
-    $self->{_methods} = {%{$self->{_methods} || {}}, %$methods};
148
+    $columns ||= [];
149 149
     
150
-    return $self;
150
+    my @column;
151
+    push @column, "$table.$_ as ${table}__$_" for @$columns;
152
+    
153
+    return join (', ', @column);
151 154
 }
152 155
 
153 156
 sub connect {
... ...
@@ -238,7 +241,7 @@ sub dbh {
238 241
 }
239 242
 
240 243
 our %VALID_DELETE_ARGS
241
-  = map { $_ => 1 } qw/table where append filter allow_delete_all query/;
244
+  = map { $_ => 1 } @COMMON_ARGS, qw/where append allow_delete_all/;
242 245
 
243 246
 sub delete {
244 247
     my ($self, %args) = @_;
... ...
@@ -303,7 +306,7 @@ sub delete {
303 306
 sub delete_all { shift->delete(allow_delete_all => 1, @_) }
304 307
 
305 308
 our %VALID_DELETE_AT_ARGS
306
-  = map { $_ => 1 } qw/table where append filter query primary_key param/;
309
+  = (%VALID_DELETE_ARGS, where => 1, primary_key => 1);
307 310
 
308 311
 sub delete_at {
309 312
     my ($self, %args) = @_;
... ...
@@ -472,7 +475,7 @@ sub execute{
472 475
 }
473 476
 
474 477
 our %VALID_INSERT_ARGS
475
-  = map { $_ => 1 } qw/table param append filter query/;
478
+  = map { $_ => 1 } @COMMON_ARGS, qw/param append/;
476 479
 
477 480
 sub insert {
478 481
     my ($self, %args) = @_;
... ...
@@ -525,8 +528,7 @@ sub insert {
525 528
 }
526 529
 
527 530
 our %VALID_INSERT_AT_ARGS
528
-  = map { $_ => 1 } qw/table param where append filter
529
-                       query primary_key param/;
531
+  = (%VALID_INSERT_ARGS, where => 1, primary_key => 1);
530 532
 
531 533
 sub insert_at {
532 534
     my ($self, %args) = @_;
... ...
@@ -681,6 +683,16 @@ sub include_model {
681 683
     return $self;
682 684
 }
683 685
 
686
+sub method {
687
+    my $self = shift;
688
+    
689
+    # Merge
690
+    my $methods = ref $_[0] eq 'HASH' ? $_[0] : {@_};
691
+    $self->{_methods} = {%{$self->{_methods} || {}}, %$methods};
692
+    
693
+    return $self;
694
+}
695
+
684 696
 sub model {
685 697
     my ($self, $name, $model) = @_;
686 698
     
... ...
@@ -698,6 +710,16 @@ sub model {
698 710
     return $self->models->{$name};
699 711
 }
700 712
 
713
+sub mycolumn {
714
+    my ($self, $table, $columns) = @_;
715
+    
716
+    $columns ||= [];
717
+    my @column;
718
+    push @column, "$table.$_ as $_" for @$columns;
719
+    
720
+    return join (', ', @column);
721
+}
722
+
701 723
 sub new {
702 724
     my $self = shift->SUPER::new(@_);
703 725
     
... ...
@@ -740,8 +762,8 @@ sub register_filter {
740 762
 sub register_tag { shift->query_builder->register_tag(@_) }
741 763
 
742 764
 our %VALID_SELECT_ARGS
743
-  = map { $_ => 1 } qw/table column where append relation filter query
744
-                       selection join/;
765
+  = map { $_ => 1 } @COMMON_ARGS, qw/column where append relation
766
+                                     selection join/;
745 767
 
746 768
 sub select {
747 769
     my ($self, %args) = @_;
... ...
@@ -816,15 +838,14 @@ sub select {
816 838
             
817 839
             # Column clause of main table
818 840
             if ($main_table) {
819
-                push @sql, $self->model($main_table)->column_clause;
841
+                push @sql, $self->model($main_table)->mycolumn;
820 842
                 push @sql, ',';
821 843
             }
822 844
             
823 845
             # Column cluase of other tables
824 846
             foreach my $table (keys %tables) {
825 847
                 unshift @$tables, $table;
826
-                push @sql, $self->model($table)
827
-                                ->column_clause(prefix => "${table}__");
848
+                push @sql, $self->model($table)->column($table);
828 849
                 push @sql, ',';
829 850
             }
830 851
             pop @sql if $sql[-1] eq ',';
... ...
@@ -910,8 +931,7 @@ sub select {
910 931
 }
911 932
 
912 933
 our %VALID_SELECT_AT_ARGS
913
-  = map { $_ => 1 } qw/table column where append relation filter query selection
914
-                       param primary_key join/;
934
+  = (%VALID_SELECT_ARGS, where => 1, primary_key => 1);
915 935
 
916 936
 sub select_at {
917 937
     my ($self, %args) = @_;
... ...
@@ -971,8 +991,8 @@ sub setup_model {
971 991
 }
972 992
 
973 993
 our %VALID_UPDATE_ARGS
974
-  = map { $_ => 1 } qw/table param where append filter
975
-                       allow_update_all query/;
994
+  = map { $_ => 1 } @COMMON_ARGS, qw/param where append
995
+                                     allow_update_all/;
976 996
 
977 997
 sub update {
978 998
     my ($self, %args) = @_;
... ...
@@ -1069,8 +1089,7 @@ sub update {
1069 1089
 sub update_all { shift->update(allow_update_all => 1, @_) };
1070 1090
 
1071 1091
 our %VALID_UPDATE_AT_ARGS
1072
-  = map { $_ => 1 } qw/table param where append filter
1073
-                       query primary_key param/;
1092
+  = (%VALID_UPDATE_ARGS, where => 1, primary_key => 1);
1074 1093
 
1075 1094
 sub update_at {
1076 1095
     my ($self, %args) = @_;
... ...
@@ -1825,6 +1844,15 @@ filter name registerd by C<register_filter()>.
1825 1844
 
1826 1845
 These filters are added to the C<out> filters, set by C<apply_filter()>.
1827 1846
 
1847
+=head2 C<column> EXPERIMENTAL
1848
+
1849
+    my $column = $self->column(book => ['author', 'title']);
1850
+
1851
+Create column clause. The follwoing column clause is created.
1852
+
1853
+    book.author as book__author,
1854
+    book.title as book__title
1855
+
1828 1856
 =item C<query> EXPERIMENTAL
1829 1857
 
1830 1858
 Get L<DBIx::Custom::Query> object instead of executing SQL.
... ...
@@ -2121,6 +2149,15 @@ Register method. These method is called directly from L<DBIx::Custom> object.
2121 2149
 
2122 2150
 Set and get a L<DBIx::Custom::Model> object,
2123 2151
 
2152
+=head2 C<mycolumn> EXPERIMENTAL
2153
+
2154
+    my $column = $self->mycolumn(book => ['author', 'title']);
2155
+
2156
+Create column clause for myself. The follwoing column clause is created.
2157
+
2158
+    book.author as author,
2159
+    book.title as title
2160
+
2124 2161
 =head2 C<new>
2125 2162
 
2126 2163
     my $dbi = DBIx::Custom->new(
+46 -3
lib/DBIx/Custom/Guide.pod
... ...
@@ -325,9 +325,10 @@ You can join table by C<join>.
325 325
 
326 326
 Following SQL is executed.
327 327
 
328
-    select company.name as company__name from book
328
+    select company.name as company__name
329
+    from book
329 330
       left outer join company on book.company_id = company.id
330
-      where book.name = ?;
331
+    where book.name = ?;
331 332
 
332 333
 company_if of book and id of company is left outer joined.
333 334
 
... ...
@@ -345,7 +346,26 @@ because C<join> is not needed.
345 346
 Following SQL is executeed.
346 347
 
347 348
     select * from book where book.name = ?;
348
-    
349
+
350
+You can specify column names easily using C<mycolumn()> and C<column()>.
351
+
352
+    my $result = $dbi->select(
353
+        table  => 'book',
354
+        column => [
355
+            $dbi->mycolumn('book' => ['name']),
356
+            $dbi->column('company' => ['id', 'name'])
357
+        ],
358
+        join   => ['left outer join company on book.company_id = company.id]
359
+    );
360
+
361
+The following SQL is executed.
362
+
363
+    select book.name as name,
364
+      company.id as comapny__id,
365
+      company.name as company__name
366
+    from book
367
+      left outer join company on book.company_id = company.id
368
+
349 369
 Next example.
350 370
 
351 371
     my $result = $dbi->select(
... ...
@@ -1171,6 +1191,29 @@ Table name is the table really accessed.
1171 1191
 
1172 1192
     $dbi->model('book')->insert(...); # access to "book_table"
1173 1193
 
1194
+=head2 Create column clause automatically : mycolumn(), column()
1195
+
1196
+To create column clause automatically, use C<mycolumn()>.
1197
+Valude of C<table> and C<columns> is used.
1198
+
1199
+    my $column_clause = $model->mycolumn;
1200
+
1201
+If C<table> is 'book'�AC<column> is ['id', 'name'],
1202
+the following clause is created.
1203
+
1204
+    book.id as id, book.name as name
1205
+
1206
+These column name is for removing column name ambiguities.
1207
+
1208
+You can create column clause from columns of other table.
1209
+
1210
+    my $column_clause = $model->column('company');
1211
+
1212
+If C<table> is 'company'�AC<column> is ['id', 'name'],
1213
+the following clause is created.
1214
+
1215
+    company.id as company__id, company.name as company__name
1216
+
1174 1217
 =head2 Create column clause automatically : column_clause()
1175 1218
 
1176 1219
 To create column clause automatically, use C<column_clause()>.
+30 -9
lib/DBIx/Custom/Guide/Ja.pod
... ...
@@ -331,9 +331,10 @@ C<join>でテーブルの結合を行うことができます。
331 331
 
332 332
 次のSQLが実行されます。
333 333
 
334
-    select company.name as company__name from book
334
+    select company.name as company__name
335
+    from book
335 336
       left outer join company on book.company_id = company.id
336
-      where book.name = ?;
337
+    where book.name = ?;
337 338
 
338 339
 bookテーブルのcompany_id列とcompanyテーブルのidが左外部結合されます。
339 340
 次のSQLが実行されます。
... ...
@@ -360,6 +361,25 @@ C<join>されるのは、C<where>やC<column>にテーブル名が含まれて
360 361
         append => 'for update',
361 362
     );
362 363
 
364
+C<mycolumn()>やC<column()>を使用すると簡単に列名を指定できます。
365
+
366
+    my $result = $dbi->select(
367
+        table  => 'book',
368
+        column => [
369
+            $dbi->mycolumn('book' => ['name']),
370
+            $dbi->column('company' => ['id', 'name'])
371
+        ],
372
+        join   => ['left outer join company on book.company_id = company.id]
373
+    );
374
+
375
+次のSQLが実行されます。
376
+
377
+    select book.name as name,
378
+      company.id as comapny__id,
379
+      company.name as company__name
380
+    from book
381
+      left outer join company on book.company_id = company.id
382
+
363 383
 C<append>はSQLの末尾に追加される文字列です。
364 384
 
365 385
 次のSQLが実行されます。
... ...
@@ -1211,12 +1231,12 @@ C<filter>でC<apply_filter()>で適用されるフィルタを定義しておく
1211 1231
 
1212 1232
     $dbi->model('book')->insert(...); # book_tableにアクセス
1213 1233
 
1214
-=head2 列名の自動生成 : column_clause()
1234
+=head2 列名の自動生成 : mycolumn(), column()
1215 1235
 
1216
-列名の節を自動生成するにはC<column_clause()>を使用します。
1236
+列名の節を自動生成するにはC<mycolumn()>を使用します。
1217 1237
 C<table>とC<columns>の値が利用されます。
1218 1238
 
1219
-    my $column_clause = $model->column_clause;
1239
+    my $column_clause = $model->mycolumn;
1220 1240
 
1221 1241
 C<table>の値が'book'、C<column>の値が['id', 'name']で
1222 1242
 あった場合は次のような列名の節が生成されます。
... ...
@@ -1225,13 +1245,14 @@ C<table>の値が'book'、C<column>の値が['id', 'name']で
1225 1245
 
1226 1246
 このように列名の節を生成するのは、列名のあいまいさをなくすためです。
1227 1247
 
1228
-不必要な列がある場合はC<remove>オプションで指定することができます。
1248
+また他のテーブルの列名から列名を自動生成することもできます。
1229 1249
 
1230
-    my $column_clause = $model->column_clause(remove => ['id']);
1250
+    my $column_clause = $model->column('company');
1231 1251
 
1232
-追加したい列がある場合は、C<add>オプションで追加することができます。
1252
+モデルのC<comparny>のC<column>の値が['id', 'name']で
1253
+あった場合は次のような列名の節が生成されます。
1233 1254
 
1234
-    my $column_clause = $model->column_clause(add => ['company.id as company__id']);
1255
+    company.id as company__id, company.name as company__name
1235 1256
 
1236 1257
 =head2 モデルのサンプル
1237 1258
 
+33 -66
lib/DBIx/Custom/Model.pm
... ...
@@ -39,43 +39,6 @@ sub AUTOLOAD {
39 39
     }
40 40
 }
41 41
 
42
-sub column_clause {
43
-    my $self = shift;
44
-    
45
-    my $args = ref $_[0] eq 'HASH' ? $_[0] : {@_};
46
-    
47
-    my $table   = $self->table;
48
-    my $columns = $self->columns;
49
-    my $add     = $args->{add} || [];
50
-    my $remove  = $args->{remove} || [];
51
-    my %remove  = map {$_ => 1} @$remove;
52
-    my $prefix  = $args->{prefix} || '';
53
-    
54
-    my @column;
55
-    foreach my $column (@$columns) {
56
-        push @column, "$table.$column as $prefix$column"
57
-          unless $remove{$column};
58
-    }
59
-    
60
-    foreach my $column (@$add) {
61
-        push @column, $column;
62
-    }
63
-    
64
-    return join (', ', @column);
65
-}
66
-
67
-sub mycolumn {
68
-    my ($self, $columns) = @_;
69
-    
70
-    my $table = $self->table || '';
71
-    $columns ||= $self->columns;
72
-    
73
-    my @column;
74
-    push @column, "$table.$_ as $_" for @$columns;
75
-    
76
-    return join (', ', @column);
77
-}
78
-
79 42
 sub column {
80 43
     my ($self, $table, $columns) = @_;
81 44
     
... ...
@@ -90,10 +53,7 @@ sub column {
90 53
     
91 54
     $columns ||= $self->model($model)->columns;
92 55
     
93
-    my @column;
94
-    push @column, "$table.$_ as ${table}__$_" for @$columns;
95
-    
96
-    return join (', ', @column);
56
+    return $self->dbi->column($table, $columns);
97 57
 }
98 58
 
99 59
 sub delete {
... ...
@@ -133,6 +93,17 @@ sub insert_at {
133 93
     );
134 94
 }
135 95
 
96
+sub mycolumn {
97
+    my $self = shift;
98
+    my $table = shift unless ref $_[0];
99
+    my $columns = shift;
100
+    
101
+    $table ||= $self->table || '';
102
+    $columns ||= $self->columns;
103
+    
104
+    return $self->dbi->mycolumn($table, $columns);
105
+}
106
+
136 107
 sub select {
137 108
     my $self = shift;
138 109
     $self->dbi->select(
... ...
@@ -247,35 +218,17 @@ L<DBIx::Custom> inherits all methods from L<Object::Simple>,
247 218
 and you can use all methods of the object set to C<dbi>.
248 219
 and implements the following new ones.
249 220
 
250
-=head2 C<column_clause()>
251
-
252
-To create column clause automatically, use C<column_clause()>.
253
-Valude of C<table> and C<columns> is used.
254
-
255
-    my $column_clause = $model->column_clause;
256
-
257
-If C<table> is 'book'�AC<column> is ['id', 'name'],
258
-the following clause is created.
259
-
260
-    book.id as id, book.name as name
261
-
262
-These column name is for removing column name ambiguities.
221
+=head2 C<column> EXPERIMETNAL
263 222
 
264
-If you remove some columns, use C<remove> option.
223
+    my $column = $self->column(book => ['author', 'title']);
224
+    my $column = $self->column('book');
265 225
 
266
-    my $column_clause = $model->column_clause(remove => ['id']);
226
+Create column clause. The follwoing column clause is created.
267 227
 
268
-If you add some column, use C<add> option.
228
+    book.author as book__author,
229
+    book.title as book__title
269 230
 
270
-    my $column_clause = $model->column_clause(add => ['company.id as company__id']);
271
-
272
-If you add column name prefix, use C<prefix> option
273
-
274
-    my $column_clause = $model->column_clause(prefix => 'book__');
275
-
276
-The following clause is created.
277
-
278
-    book.id as book__id, book.name as book__name
231
+If column names is omitted, C<columns> attribute of the model is used.
279 232
 
280 233
 =head2 C<delete>
281 234
 
... ...
@@ -312,6 +265,20 @@ you don't have to specify C<table> option.
312 265
 Same as C<insert_at()> of L<DBIx::Custom> except that
313 266
 you don't have to specify C<table> and C<primary_key> option.
314 267
 
268
+=head2 C<mycolumn> EXPERIMENTAL
269
+
270
+    my $column = $self->mycolumn;
271
+    my $column = $self->mycolumn(book => ['author', 'title']);
272
+    my $column = $self->mycolumn(['author', 'title']);
273
+
274
+Create column clause for myself. The follwoing column clause is created.
275
+
276
+    book.author as author,
277
+    book.title as title
278
+
279
+If table name is ommited, C<table> attribute of the model is used.
280
+If column names is omitted, C<columns> attribute of the model is used.
281
+
315 282
 =head2 C<new>
316 283
 
317 284
     my $table = DBIx::Custom::Table->new;
+8 -10
t/dbix-custom-core-sqlite.t
... ...
@@ -1545,7 +1545,7 @@ $dbi->insert(table => 'table1', param => {key1 => 1, key2 => 2, key3 => 3});
1545 1545
 $result = $dbi->select_at(
1546 1546
     table => 'table1',
1547 1547
     primary_key => ['key1', 'key2'],
1548
-    param => {key1 => 1, key2 => 2},
1548
+    where => [1, 2]
1549 1549
 );
1550 1550
 $row = $result->fetch_hash_first;
1551 1551
 is($row->{key1}, 1);
... ...
@@ -1557,7 +1557,6 @@ eval {
1557 1557
         table => 'table1',
1558 1558
         primary_key => ['key1', 'key2'],
1559 1559
         where => {},
1560
-        param => {key1 => 1, key2 => 2},
1561 1560
     );
1562 1561
 };
1563 1562
 like($@, qr/must be/);
... ...
@@ -1577,7 +1576,6 @@ eval {
1577 1576
         table => 'table1',
1578 1577
         primary_key => ['key1', 'key2'],
1579 1578
         where => {},
1580
-        param => {key1 => 1, key2 => 2},
1581 1579
     );
1582 1580
 };
1583 1581
 like($@, qr/must be/);
... ...
@@ -1652,7 +1650,7 @@ is($row->{key2}, 2);
1652 1650
 is($row->{key3}, 3);
1653 1651
 
1654 1652
 
1655
-test 'column_clause';
1653
+test 'mycolumn and column';
1656 1654
 {
1657 1655
     package MyDBI7;
1658 1656
     
... ...
@@ -1674,12 +1672,12 @@ $dbi->setup_model;
1674 1672
 $dbi->insert(table => 'table1', param => {key1 => 1, key2 => 2});
1675 1673
 $dbi->insert(table => 'table2', param => {key1 => 1, key3 => 3});
1676 1674
 $model = $dbi->model('table1');
1677
-$result = $model->select(column => $model->column_clause, where => {'table1.key1' => 1});
1678
-is_deeply($result->fetch_hash_first, {key1 => 1, key2 => 2});
1679
-$result = $model->select(column => $model->column_clause(remove => ['key1']), where => {'table1.key1' => 1});
1680
-is_deeply($result->fetch_hash_first, {key2 => 2});
1681
-$result = $model->select(column => $model->column_clause(add => ['table2.key3']), where => {'table1.key1' => 1});
1682
-is_deeply($result->fetch_hash_first, {key1 => 1, key2 => 2, key3 => 3});
1675
+$result = $model->select(
1676
+    column => [$model->mycolumn, $model->column('table2')],
1677
+    where => {'table1.key1' => 1}
1678
+);
1679
+is_deeply($result->fetch_hash_first,
1680
+          {key1 => 1, key2 => 2, 'table2__key1' => 1, 'table2__key3' => 3});
1683 1681
 
1684 1682
 test 'update_param';
1685 1683
 $dbi = DBIx::Custom->connect($NEW_ARGS->{0});