marjoree 0.0.1 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Marjoree.iml +14 -0
- data/README +9 -36
- data/bin/create_marj_structure.rb +75 -0
- data/bin/create_odbc_connections.rb +39 -0
- data/bin/odbc_connection_finder.rb +46 -0
- data/examples/contains_example.rb +1 -1
- data/examples/count_and_insert_example.rb +1 -1
- data/examples/select_example.rb +1 -1
- data/html/classes/ExpectedResultSet.html +60 -33
- data/html/classes/ExpectedResultSet.src/M000002.html +6 -5
- data/html/classes/ExpectedResultSet.src/M000003.html +5 -5
- data/html/classes/ExpectedResultSet.src/M000004.html +5 -5
- data/html/classes/ExpectedResultSet.src/M000005.html +18 -0
- data/html/classes/ExpectedResultSet.src/M000006.html +24 -0
- data/html/classes/ExpectedResultSet.src/M000007.html +23 -0
- data/html/classes/ExpectedResultSet.src/M000008.html +29 -0
- data/html/classes/Fixnum.html +287 -0
- data/html/classes/Fixnum.src/M000031.html +18 -0
- data/html/classes/Fixnum.src/M000034.html +18 -0
- data/html/classes/Fixnum.src/M000037.html +18 -0
- data/html/classes/Fixnum.src/M000039.html +18 -0
- data/html/classes/Fixnum.src/M000041.html +18 -0
- data/html/classes/Hash.html +156 -0
- data/html/classes/Hash.src/M000009.html +21 -0
- data/html/classes/Hash.src/M000010.html +20 -0
- data/html/classes/Marjoree.html +268 -151
- data/html/classes/Marjoree.src/M000057.html +19 -0
- data/html/classes/Marjoree.src/M000058.html +18 -0
- data/html/classes/{ExpectedResultSet.src/M000001.html → Marjoree.src/M000059.html} +4 -4
- data/html/classes/Marjoree.src/{M000024.html → M000060.html} +4 -4
- data/html/classes/Marjoree.src/{M000031.html → M000061.html} +4 -4
- data/html/classes/Marjoree.src/{M000026.html → M000062.html} +3 -3
- data/html/classes/Marjoree.src/{M000027.html → M000063.html} +3 -3
- data/html/classes/Marjoree.src/{M000028.html → M000064.html} +3 -3
- data/html/classes/Marjoree.src/{M000029.html → M000065.html} +5 -6
- data/html/classes/Marjoree.src/{M000030.html → M000066.html} +5 -5
- data/html/classes/Marjoree.src/M000067.html +19 -0
- data/html/classes/Marjoree.src/{M000032.html → M000068.html} +3 -3
- data/html/classes/{ResultSetWrapper.src/M000009.html → Marjoree.src/M000069.html} +4 -4
- data/html/classes/{ResultSetWrapper.src/M000010.html → Marjoree.src/M000070.html} +4 -4
- data/html/classes/{ResultSetWrapper.src/M000011.html → Marjoree.src/M000071.html} +4 -4
- data/html/classes/Marjoree.src/M000072.html +20 -0
- data/html/classes/Marjoree.src/M000073.html +20 -0
- data/html/classes/Marjoree.src/M000074.html +20 -0
- data/html/classes/Marjoree.src/{M000033.html → M000075.html} +3 -3
- data/html/classes/Marjoree.src/{M000034.html → M000076.html} +4 -4
- data/html/classes/Marjoree.src/{M000035.html → M000077.html} +2 -2
- data/html/classes/Marjoree.src/{M000036.html → M000078.html} +4 -3
- data/html/classes/Marjoree.src/{M000037.html → M000079.html} +1 -1
- data/html/classes/Marjoree.src/{M000038.html → M000080.html} +3 -3
- data/html/classes/Marjoree.src/{M000039.html → M000081.html} +3 -4
- data/html/classes/Marjoree.src/{M000040.html → M000082.html} +3 -3
- data/html/classes/Marjoree.src/{M000041.html → M000083.html} +3 -3
- data/html/classes/{ResultSetWrapper.src/M000008.html → Marjoree.src/M000084.html} +4 -4
- data/html/classes/ODBC.html +4 -0
- data/html/classes/ODBC/Error.html +12 -12
- data/html/classes/ODBC/Error.src/M000047.html +21 -0
- data/html/classes/ODBC/Error.src/{M000021.html → M000048.html} +2 -2
- data/html/classes/ODBC/TimeStamp.html +48 -18
- data/html/classes/ODBC/TimeStamp.src/{M000017.html → M000042.html} +2 -2
- data/html/classes/ODBC/TimeStamp.src/M000043.html +22 -0
- data/html/classes/ODBC/TimeStamp.src/{M000019.html → M000044.html} +2 -3
- data/html/classes/ODBC/TimeStamp.src/M000045.html +18 -0
- data/html/classes/ODBC/TimeStamp.src/M000046.html +18 -0
- data/html/classes/OdbcConnectionWrapper.html +244 -0
- data/html/classes/OdbcConnectionWrapper.src/M000023.html +18 -0
- data/html/classes/OdbcConnectionWrapper.src/M000024.html +18 -0
- data/html/classes/OdbcConnectionWrapper.src/M000025.html +22 -0
- data/html/classes/OdbcConnectionWrapper.src/M000026.html +25 -0
- data/html/classes/OdbcConnectionWrapper.src/M000027.html +20 -0
- data/html/classes/OdbcConnectionWrapper.src/M000028.html +28 -0
- data/html/classes/OdbcConnectionWrapper.src/M000029.html +24 -0
- data/html/classes/OdbcConnectionWrapper.src/M000030.html +30 -0
- data/html/classes/{ResultSetWrapper.html → ResultSet.html} +71 -94
- data/html/classes/ResultSet.src/M000011.html +27 -0
- data/html/classes/ResultSet.src/M000012.html +21 -0
- data/html/classes/ResultSet.src/M000013.html +23 -0
- data/html/classes/ResultSet.src/M000014.html +18 -0
- data/html/classes/ResultSet.src/M000015.html +18 -0
- data/html/classes/ResultSet.src/M000016.html +18 -0
- data/html/classes/ResultSet.src/M000017.html +18 -0
- data/html/classes/ResultSet.src/M000018.html +20 -0
- data/html/classes/ResultSet.src/M000019.html +18 -0
- data/html/classes/ResultSet.src/M000020.html +22 -0
- data/html/classes/ResultSet.src/M000021.html +23 -0
- data/html/classes/ResultSet.src/M000022.html +22 -0
- data/html/classes/Test.html +107 -0
- data/html/classes/Test/Unit.html +107 -0
- data/html/classes/Test/Unit/TestCase.html +257 -0
- data/html/classes/Test/Unit/TestCase.src/M000049.html +18 -0
- data/html/classes/Test/Unit/TestCase.src/M000050.html +18 -0
- data/html/classes/Test/Unit/TestCase.src/M000051.html +17 -0
- data/html/classes/Test/Unit/TestCase.src/M000052.html +17 -0
- data/html/classes/Test/Unit/TestCase.src/M000053.html +25 -0
- data/html/classes/Test/Unit/TestCase.src/M000054.html +18 -0
- data/html/classes/Test/Unit/TestCase.src/M000055.html +18 -0
- data/html/classes/Test/Unit/TestCase.src/M000056.html +35 -0
- data/html/created.rid +1 -1
- data/html/files/README.html +2 -51
- data/html/files/lib/expected_result_set_rb.html +1 -16
- data/html/files/lib/marjoree/core_rb.html +111 -0
- data/html/files/lib/marjoree/fixtures_rb.html +111 -0
- data/html/files/lib/marjoree/odbc_connection_wrapper_rb.html +109 -0
- data/html/files/lib/marjoree/odbc_rb.html +108 -0
- data/html/files/lib/{odbc_overrides_rb.html → marjoree/result_set_rb.html} +5 -5
- data/html/files/lib/{result_set_wrapper_rb.html → marjoree/time_rb.html} +5 -5
- data/html/files/lib/marjoree_rb.html +3 -4
- data/html/files/lib/run_marjoree_rb.html +145 -0
- data/html/files/lib/run_marjoree_rb.src/M000001.html +34 -0
- data/html/fr_class_index.html +7 -1
- data/html/fr_file_index.html +7 -2
- data/html/fr_method_index.html +84 -42
- data/lib/Marjoree.iml +12 -0
- data/lib/expected_result_set.rb +51 -24
- data/lib/marjoree.rb +2 -344
- data/lib/marjoree/core.rb +388 -0
- data/lib/marjoree/fixtures.rb +156 -0
- data/lib/marjoree/odbc.rb +45 -0
- data/lib/marjoree/odbc_connection_wrapper.rb +79 -0
- data/lib/marjoree/result_set.rb +165 -0
- data/lib/marjoree/sybase_definitions.rb +223 -0
- data/lib/marjoree/time.rb +31 -0
- data/lib/proc_param_info.txt +20 -0
- data/lib/run_marjoree.rb +31 -0
- data/pkg/marjoree-0.0.9.gem +0 -0
- data/rakefile.rb +3 -3
- data/tests/all_cruby_tests.rb +24 -0
- data/tests/all_jruby_tests.rb +22 -0
- data/tests/all_tests.rb +9 -6
- data/tests/fixtures/A.yml +3 -0
- data/tests/fixtures/B.yml +5 -0
- data/tests/fixtures/first_db/FIRST.yml +8 -0
- data/tests/fixtures/second_db/SECOND.yml +9 -0
- data/tests/marjoree/test_assert_results.rb +82 -0
- data/tests/marjoree/test_connection_details.rb +44 -0
- data/tests/{test_contains.rb → marjoree/test_contains.rb} +0 -0
- data/tests/{test_delete.rb → marjoree/test_delete.rb} +0 -0
- data/tests/marjoree/test_drop_user_objects.rb +52 -0
- data/tests/marjoree/test_expected_result_set.rb +111 -0
- data/tests/marjoree/test_fixtures.rb +112 -0
- data/tests/{test_insert.rb → marjoree/test_insert.rb} +0 -0
- data/tests/{test_marjoree.rb → marjoree/test_marjoree.rb} +14 -2
- data/tests/marjoree/test_multiple_db_fixtures.rb +35 -0
- data/tests/{test_num_rows.rb → marjoree/test_num_rows.rb} +0 -0
- data/tests/marjoree/test_odbc_connection_wrapper.rb +47 -0
- data/tests/{test_result_set_wrapper.rb → marjoree/test_result_set_wrapper.rb} +8 -8
- data/tests/marjoree/test_select.rb +55 -0
- data/tests/marjoree/test_single_odbc_connection_wrapper.rb +39 -0
- data/tests/{test_sproc.rb → marjoree/test_sproc.rb} +3 -4
- data/tests/marjoree/test_time.rb +25 -0
- data/tests/{test_time_stamp.rb → marjoree/test_time_stamp.rb} +10 -1
- data/tests/{test_truncate.rb → marjoree/test_truncate.rb} +0 -0
- data/tests/{test_update.rb → marjoree/test_update.rb} +14 -14
- data/tests/multiple_odbc_config/connections.yml +13 -0
- data/tests/single_odbc_config/connections.yml +3 -0
- metadata +214 -112
- data/html/classes/Marjoree.src/M000022.html +0 -19
- data/html/classes/Marjoree.src/M000023.html +0 -20
- data/html/classes/Marjoree.src/M000025.html +0 -18
- data/html/classes/Marjoree.src/M000042.html +0 -25
- data/html/classes/ODBC/Error.src/M000020.html +0 -21
- data/html/classes/ODBC/TimeStamp.src/M000018.html +0 -22
- data/html/classes/ResultSetWrapper.src/M000005.html +0 -27
- data/html/classes/ResultSetWrapper.src/M000006.html +0 -24
- data/html/classes/ResultSetWrapper.src/M000007.html +0 -23
- data/html/classes/ResultSetWrapper.src/M000012.html +0 -20
- data/html/classes/ResultSetWrapper.src/M000013.html +0 -18
- data/html/classes/ResultSetWrapper.src/M000014.html +0 -22
- data/html/classes/ResultSetWrapper.src/M000015.html +0 -23
- data/html/classes/ResultSetWrapper.src/M000016.html +0 -27
- data/lib/odbc_overrides.rb +0 -33
- data/lib/result_set_wrapper.rb +0 -193
- data/tests/test_expected_result_set.rb +0 -40
- data/tests/test_select.rb +0 -30
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>connect_me_to (Marjoree)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 22</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">connect_me_to</span>( <span class="ruby-identifier">odbc_name</span> )
|
|
15
|
+
<span class="ruby-identifier">$connection</span>.<span class="ruby-identifier">connect_me_to</span>( <span class="ruby-identifier">odbc_name</span> )
|
|
16
|
+
|
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>establish_connection_to (Marjoree)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 28</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">establish_connection_to</span>( <span class="ruby-identifier">connection</span> )
|
|
15
|
+
<span class="ruby-identifier">$connection</span> = <span class="ruby-identifier">connection</span>
|
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>disconnect_me (Marjoree)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 33</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">disconnect_me</span>
|
|
15
|
+
<span class="ruby-identifier">$connection</span>.<span class="ruby-identifier">disconnect_me</span>
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 47</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">map</span>={} )
|
|
15
15
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">has_output_params?</span>( <span class="ruby-identifier">proc_name</span> )
|
|
16
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">run_complex_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">
|
|
16
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">run_complex_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">map</span> )
|
|
17
17
|
<span class="ruby-keyword kw">else</span>
|
|
18
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">run_simple_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">
|
|
18
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">run_simple_sproc</span>( <span class="ruby-identifier">proc_name</span>, <span class="ruby-identifier">map</span> )
|
|
19
19
|
<span class="ruby-keyword kw">end</span>
|
|
20
20
|
<span class="ruby-keyword kw">end</span></pre>
|
|
21
21
|
</body>
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>select (Marjoree)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 56</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> = <span class="ruby-keyword kw">nil</span>)
|
|
15
15
|
<span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>( <span class="ruby-identifier">where_map</span> )
|
|
16
|
-
<span class="ruby-identifier">execute</span>
|
|
16
|
+
<span class="ruby-identifier">execute</span> <span class="ruby-node">"SELECT * FROM #{table_name} #{where_clause}"</span>
|
|
17
17
|
<span class="ruby-keyword kw">end</span></pre>
|
|
18
18
|
</body>
|
|
19
19
|
</html>
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 74</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">num_rows</span>( <span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> = <span class="ruby-keyword kw">nil</span> )
|
|
15
15
|
<span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>( <span class="ruby-identifier">where_map</span> )
|
|
16
|
-
<span class="ruby-identifier">dbCall</span> = <span class="ruby-identifier">execute</span>( <span class="ruby-node">"SELECT COUNT(*) FROM #{table_name} #{where_clause}"</span> )
|
|
17
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dbCall</span>.<span class="ruby-identifier">
|
|
16
|
+
<span class="ruby-identifier">dbCall</span> = <span class="ruby-identifier">execute</span>( <span class="ruby-node">"SELECT COUNT(*) AS number_of_rows FROM #{table_name} #{where_clause}"</span> )
|
|
17
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">dbCall</span>.<span class="ruby-identifier">hashes</span>.<span class="ruby-identifier">first</span>[<span class="ruby-identifier">:number_of_rows</span>]
|
|
18
18
|
<span class="ruby-keyword kw">end</span></pre>
|
|
19
19
|
</body>
|
|
20
20
|
</html>
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>(
|
|
15
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">num_rows</span>(
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 81</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span> = <span class="ruby-keyword kw">nil</span>)
|
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">num_rows</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span>)
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contains?</span>(
|
|
15
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">count</span>(
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 90</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contains?</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">map</span>={})
|
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">count</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">map</span>) <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -10,12 +10,11 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>(
|
|
15
|
-
<span class="ruby-identifier">columns</span> = <span class="ruby-identifier">build_column_headers</span>(<span class="ruby-identifier">
|
|
16
|
-
<span class="ruby-identifier">values</span> = <span class="ruby-identifier">build_column_values</span>(
|
|
17
|
-
|
|
18
|
-
<span class="ruby-identifier">execute</span>( <span class="ruby-node">"INSERT INTO #{table_name} (#{columns}) VALUES (#{values})"</span> )
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 96</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">map</span>={})
|
|
15
|
+
<span class="ruby-identifier">columns</span> = <span class="ruby-identifier">build_column_headers</span>(<span class="ruby-identifier">map</span>)
|
|
16
|
+
<span class="ruby-identifier">values</span> = <span class="ruby-identifier">build_column_values</span>(<span class="ruby-identifier">map</span>)
|
|
17
|
+
<span class="ruby-identifier">execute</span> <span class="ruby-node">"INSERT INTO #{table_name} (#{columns}) VALUES (#{values})"</span>
|
|
19
18
|
<span class="ruby-keyword kw">end</span></pre>
|
|
20
19
|
</body>
|
|
21
20
|
</html>
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(
|
|
15
|
-
<span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>(
|
|
16
|
-
<span class="ruby-identifier">assignments</span> = <span class="ruby-identifier">build_set_statement</span>(
|
|
17
|
-
<span class="ruby-identifier">execute</span>
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 109</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">where_map</span>={}, <span class="ruby-identifier">map</span>={})
|
|
15
|
+
<span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>(<span class="ruby-identifier">where_map</span>)
|
|
16
|
+
<span class="ruby-identifier">assignments</span> = <span class="ruby-identifier">build_set_statement</span>(<span class="ruby-identifier">map</span>)
|
|
17
|
+
<span class="ruby-identifier">execute</span> <span class="ruby-node">"UPDATE #{table_name} SET #{assignments} #{where_clause}"</span>
|
|
18
18
|
<span class="ruby-keyword kw">end</span></pre>
|
|
19
19
|
</body>
|
|
20
20
|
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>delete (Marjoree)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 120</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">map</span>={})
|
|
15
|
+
<span class="ruby-identifier">where_clause</span> = <span class="ruby-identifier">build_where_statement</span>(<span class="ruby-identifier">map</span>)
|
|
16
|
+
<span class="ruby-identifier">execute</span> <span class="ruby-node">"DELETE FROM #{table_name} #{where_clause}"</span>
|
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">truncate</span>(
|
|
15
|
-
<span class="ruby-identifier">execute</span>
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 126</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">truncate</span>(<span class="ruby-identifier">table_name</span>)
|
|
15
|
+
<span class="ruby-identifier">execute</span> <span class="ruby-node">"TRUNCATE TABLE #{table_name}"</span>
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>get_user_tables (Marjoree)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 130</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_user_tables</span>
|
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_objects</span>( <span class="ruby-value str">'U'</span> )
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>get_user_views (Marjoree)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 134</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_user_views</span>
|
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_objects</span>( <span class="ruby-value str">'V'</span> )
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>get_user_sprocs (Marjoree)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 138</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_user_sprocs</span>
|
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_objects</span>( <span class="ruby-value str">'P'</span> )
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>drop_user_tables (Marjoree)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 143</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drop_user_tables</span>
|
|
15
|
+
<span class="ruby-identifier">drop_objects</span>(<span class="ruby-value str">'TABLE'</span>) <span class="ruby-keyword kw">do</span>
|
|
16
|
+
<span class="ruby-identifier">get_user_tables</span>
|
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>drop_user_views (Marjoree)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 150</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drop_user_views</span>
|
|
15
|
+
<span class="ruby-identifier">drop_objects</span>(<span class="ruby-value str">'VIEW'</span>) <span class="ruby-keyword kw">do</span>
|
|
16
|
+
<span class="ruby-identifier">get_user_views</span>
|
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>drop_user_sprocs (Marjoree)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 157</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">drop_user_sprocs</span>
|
|
15
|
+
<span class="ruby-identifier">drop_objects</span>(<span class="ruby-value str">'PROCEDURE'</span>) <span class="ruby-keyword kw">do</span>
|
|
16
|
+
<span class="ruby-identifier">get_user_sprocs</span>
|
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_empty</span>(
|
|
15
|
-
<span class="ruby-identifier">assert_equal</span>
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 164</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_empty</span>(<span class="ruby-identifier">result_set</span>)
|
|
15
|
+
<span class="ruby-identifier">assert_equal</span> <span class="ruby-value">0</span>, <span class="ruby-identifier">result_set</span>.<span class="ruby-identifier">hashes</span>.<span class="ruby-identifier">size</span>
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_results</span>(
|
|
15
|
-
<span class="ruby-identifier">assert_column_headers</span>
|
|
16
|
-
<span class="ruby-identifier">assert_row_data</span>
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 169</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_results</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
|
|
15
|
+
<span class="ruby-identifier">assert_column_headers</span> <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>
|
|
16
|
+
<span class="ruby-identifier">assert_row_data</span> <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>
|
|
17
17
|
<span class="ruby-keyword kw">end</span></pre>
|
|
18
18
|
</body>
|
|
19
19
|
</html>
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_not_equal_results</span>(
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 175</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_not_equal_results</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
|
|
15
15
|
<span class="ruby-identifier">flag1</span> = <span class="ruby-operator">!</span><span class="ruby-identifier">has_column_headers?</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
|
|
16
16
|
<span class="ruby-identifier">flag2</span> = <span class="ruby-operator">!</span><span class="ruby-identifier">has_correct_data?</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
|
|
17
17
|
|
|
@@ -10,16 +10,17 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 183</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_error_thrown</span>( <span class="ruby-identifier">expected_error_code</span>, <span class="ruby-identifier">expected_error_message</span> )
|
|
15
15
|
<span class="ruby-keyword kw">begin</span>
|
|
16
16
|
<span class="ruby-keyword kw">yield</span>
|
|
17
17
|
<span class="ruby-identifier">fail</span>
|
|
18
18
|
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">ODBC</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>
|
|
19
19
|
<span class="ruby-identifier">exception</span> = <span class="ruby-identifier">$!</span>
|
|
20
|
-
|
|
21
20
|
<span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">expected_error_code</span>, <span class="ruby-identifier">exception</span>.<span class="ruby-identifier">error_code</span> )
|
|
22
|
-
<span class="ruby-
|
|
21
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expected_error_message</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
|
22
|
+
<span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">expected_error_message</span>, <span class="ruby-identifier">exception</span>.<span class="ruby-identifier">error_message</span> )
|
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
|
23
24
|
<span class="ruby-keyword kw">end</span>
|
|
24
25
|
<span class="ruby-keyword kw">end</span></pre>
|
|
25
26
|
</body>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 199</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_db_error</span>
|
|
15
15
|
<span class="ruby-keyword kw">begin</span>
|
|
16
16
|
<span class="ruby-keyword kw">yield</span>
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_column_headers?</span>(
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 207</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_column_headers?</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
|
|
15
15
|
<span class="ruby-keyword kw">begin</span>
|
|
16
|
-
<span class="ruby-identifier">assert_column_headers</span>
|
|
16
|
+
<span class="ruby-identifier">assert_column_headers</span> <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>
|
|
17
17
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
|
18
18
|
<span class="ruby-keyword kw">rescue</span>
|
|
19
19
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
|
@@ -10,11 +10,10 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/marjoree.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_correct_data?</span>(
|
|
15
|
-
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/marjoree/core.rb, line 216</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_correct_data?</span>(<span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>)
|
|
16
15
|
<span class="ruby-keyword kw">begin</span>
|
|
17
|
-
<span class="ruby-identifier">assert_row_data</span>
|
|
16
|
+
<span class="ruby-identifier">assert_row_data</span> <span class="ruby-identifier">expected</span>, <span class="ruby-identifier">result_set</span>
|
|
18
17
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
|
19
18
|
<span class="ruby-keyword kw">rescue</span>
|
|
20
19
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|