| | 69 | |
| | 70 | Existing apps will have code such as: |
| | 71 | {{{ |
| | 72 | string sql = "SELECT * FROM [railcars] WHERE [ID] = '" + strId + "';"; |
| | 73 | statement st(db, sql); |
| | 74 | cursor cur(st.get_cursor()); |
| | 75 | if(cur.step() == SQLITE_ROW) { |
| | 76 | cur.get("ID", curRailcar.strId); |
| | 77 | cur.get("Target", curRailcar.target); |
| | 78 | } |
| | 79 | }}} |
| | 80 | |
| | 81 | Replace with: |
| | 82 | Existing apps will have code such as: |
| | 83 | {{{ |
| | 84 | string sql = "SELECT * FROM railcars WHERE ID = '" + strId + "';"; |
| | 85 | CDBStatement stmt(appDB, sql); |
| | 86 | if(stmt.Step() == DBSQL_ROW) { |
| | 87 | stmt.Get("ID", curRailcar.strId); |
| | 88 | stmt.Get("Target", curRailcar.target); |
| | 89 | } |
| | 90 | }}} |
| | 91 | |
| | 92 | |