Showing 1 changed files with 12 additions and 15 deletions
+12 -15
lib/DBIx/Custom.pm
... ...
@@ -1912,12 +1912,10 @@ or array refrence, which contains where clause and paramter.
1912 1912
     );
1913 1913
     $dbi->delete(where => $where);
1914 1914
 
1915
-    # Array refrendce (where clause and parameter)
1916
-    $dbi->delete(where =>
1917
-        [
1918
-            ['and', '{= author}', '{like title}'],
1919
-            {author => 'Ken', title => '%Perl%'}
1920
-        ]
1915
+    # String(with where_param option)
1916
+    $dbi->delete(
1917
+        where => '{like title}',
1918
+        where_param => {title => '%Perl%'}
1921 1919
     );
1922 1920
     
1923 1921
 =item C<append>
... ...
@@ -2383,12 +2381,10 @@ or array refrence, which contains where clause and paramter.
2383 2381
     );
2384 2382
     $dbi->select(where => $where);
2385 2383
 
2386
-    # Array refrendce (where clause and parameter)
2387
-    $dbi->select(where =>
2388
-        [
2389
-            ['and', '{= author}', '{like title}'],
2390
-            {author => 'Ken', title => '%Perl%'}
2391
-        ]
2384
+    # String(with where_param option)
2385
+    $dbi->select(
2386
+        where => '{like title}',
2387
+        where_param => {title => '%Perl%'}
2392 2388
     );
2393 2389
     
2394 2390
 =item C<join>
... ...
@@ -2595,10 +2591,11 @@ or array refrence.
2595 2591
     );
2596 2592
     $dbi->update(where => $where);
2597 2593
     
2598
-    # String
2594
+    # String(with where_param option)
2599 2595
     $dbi->update(
2600
-        where => ['{= id}', {id => 2}]
2601
-        param => {title => 'Perl', id => 2}
2596
+        param => {title => 'Perl'},
2597
+        where => '{= id}',
2598
+        where_param => {id => 2}
2602 2599
     );
2603 2600
     
2604 2601
 =item C<append>