|
|
|
SQLite:jdbc attach database
|
|||
|---|---|---|---|
|
#18+
Знатоки SQLite. Подскажите плиз как корректно подключить еще одну БД как схему. Спасибо. Код: java 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. Код: java 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.04.2016, 13:36 |
|
||
|
SQLite:jdbc attach database
|
|||
|---|---|---|---|
|
#18+
С SQLLite дела не имел, в глаза не видел. НО: 1) Текст ошибки однозначно говорит, что ему не понравилось : в пути к файлу 2) Документация говорит https://www.sqlite.org/lang_attach.html что должно быть "expr" Документация говорит https://www.sqlite.org/lang_expr.html Что expr может быть Literal Values и A string constant is formed by enclosing the string in single quotes ('). A single quote within the string can be encoded by putting two single quotes in a row - as in Pascal. C-style escapes using the backslash character are not supported because they are not standard SQL. В Вашем коде single quotes не вижу. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.04.2016, 13:45 |
|
||
|
SQLite:jdbc attach database
|
|||
|---|---|---|---|
|
#18+
Да. Похоже так. path нужно было закрыть одинарной кавычкой. P.S. C SQLite дел не имел до этой недели. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.04.2016, 14:13 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=99&tid=2124143]: |
0ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
36ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
45ms |
get tp. blocked users: |
2ms |
| others: | 257ms |
| total: | 383ms |

| 0 / 0 |
