|
@@ -29,9 +29,12 @@ void datado(void) {
|
|
|
|
|
|
|
|
|
|
|
|
- char nick[] = "Captain";
|
|
|
+ char nick[] = "captain";
|
|
|
+
|
|
|
+
|
|
|
+ strcpy(sqlbuffer, "SELECT id FROM USER WHERE nick=? COLLATE NOCASE");
|
|
|
+
|
|
|
|
|
|
- strcpy(sqlbuffer, "SELECT id FROM USER WHERE nick=?");
|
|
|
sqlite3_prepare_v2(db, sqlbuffer, strlen(sqlbuffer) + 1, &stmt, NULL);
|
|
|
sqlite3_bind_text(stmt, 1, nick, strlen(nick), SQLITE_STATIC);
|
|
|
rc = sqlite3_step(stmt);
|