1linesubstring - out-of-range limits 2:memory: #use in-memory database 3SELECT AsText(Line_Substring(GeomFromText('LINESTRING(0 0, 10 0)'), -1, 2)) 41 # rows (not including the header row) 51 # columns 6AsText(Line_Substring(GeomFromText('LINESTRING(0 0, 10 0)'), -1, 2)) 7LINESTRING(0 0, 10 0) 8 9 10