Summary: | substr broken | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | viy <viy> |
Component: | sqlite3 | Assignee: | Vladimir D. Seleznev <vseleznv> |
Status: | CLOSED NOTABUG | QA Contact: | qa-sisyphus |
Severity: | major | ||
Priority: | P3 | CC: | nbr, sem, shrek, vseleznv |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux | ||
URL: | http://www.sqlite.org/cvstrac/tktview?tn=3877,39 |
Description
viy
2009-08-01 20:18:17 MSD
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. О. спасибо! значит, работает. Сорри за беспокойство. |