перестали работать встроенные функции работы со строками. sqlite> select substr('teststring',0,1); sqlite> должно быть substr('teststring',0,1) == 't' a оно ''.
3.6.16-alt1
как понимаю, Валерий взялся сопровождать, перевешиваю.
как воспроизвести?
с консоли: [repocop@repocop ~]$ sqlite3 SQLite version 3.6.16 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select substr('test',0,1); sqlite> [repocop@repocop ~]$ [repocop@repocop ~]$
ты ничего не попутал? sqlite> select substr('test',1,1); t sqlite>
нет, все верно. песочница repocop.altlinux.org, сегодня с утра dist-upgrade -ился, и вот такое вылезло :( присылай ключик, выдам ssh доступ.
sqlite> select substr('test',1,2); te нулевого символа там быть не может
sqlite> select substr('test',0,3); te
http://www.sqlite.org/lang_corefunc.html substr(X,Y,Z), substr(X,Y) Return a substring of input string X that begins with the Y-th character and which is Z characters long. If Z is omitted then all character through the end of the string are returned. !!!! > The left-most character of X is number 1. !!!! If Y is negative the the first character of the substring is found by counting from the right rather than the left. If X is string then characters indices refer to actual UTF-8 characters. If X is a BLOB then the indices refer to bytes.
О. спасибо! значит, работает. Сорри за беспокойство.