- Timestamp:
-
07/02/12 05:59:40 (12 years ago)
- Author:
-
C Rempel
- Comment:
-
/* Testing Ideas */
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v38
|
v39
|
|
108 | 108 | # Finalize (delete) the prepared statement |
109 | 109 | # Close the connection. |
110 | | So, a test would look like: |
111 | | /* SQL Test */ |
112 | | /* Database initialization */ |
| 110 | So, a test MAY look like: |
| 111 | /* ==================== SQL Test ================== */ |
| 112 | /* Database initialization */ |
113 | 113 | printk("Opening the Database\n"); |
114 | 114 | sqlite3_open(filename, &ppDb, flags, &zVfs); |
… |
… |
|
116 | 116 | printk("Preparing the SQL Statement\n"); |
117 | 117 | sqlite3_prepare_v2(&db, &zSql, nByte, &ppStmt, &pzTail); |
118 | | |
| 118 | |
119 | 119 | printk("Stepping through the Results\n"); |
120 | 120 | sqlite3_step(&ppStmt); |
121 | | |
| 121 | |
122 | 122 | printk("Counting the number of columns..."); |
123 | 123 | nCols = sqlite3_column_count(&ppStmt); |
124 | 124 | printk("and the number of columns is %d\n", nCols); |
125 | | |
| 125 | |
126 | 126 | printk("Deleting the SQL Statement\n"); |
127 | 127 | sqlite3_finalize(&ppStmt); |