<div>Dear all,<br></div><div><br></div><div>I am trying to transform a polygon layer to lines with a command like:<br></div><div>v.to.lines input=country_borders output=country_borders_lines --overwrite<br></div><div><br></div><div>This command fails because GRASS tries to create a temporary table whose column names are SQL keywords:<br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div><br></div><div>DBMI-PostgreSQL driver error:<br></div></div></div><div>Unable to execute:<br></div><div>CREATE TABLE country_borders_tmp_1513280_2 (cat integer,left integer,right integer)<br></div><div>ERROR:  syntax error at or near "left"<br></div><div>LINE 1: ... TABLE country_borders_tmp_1513280_2 (cat integer,left integ...<br></div><div>                                                             ^<br></div><div><br></div><div>For Postgres the correct command would have to be:<br></div><div>CREATE TABLE country_borders_tmp_1513280_2 (cat integer,"left" integer,"right" integer);<br></div><div><br></div><div>But could be different for other DBMS. In general it is not a good idea to use SQL keywords to name objects in a relational database.<br></div><div><br></div><div>To the question: is there a workaround for this problem? Can GRASS be instructed to not use SQL keywords as column names? Or somehow create valid SQL queries, for instance using double quotes?<br></div><div><br></div><div>Thank you.<br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>-- <br></div><div>Luís <br></div><div><br></div></div><div><br></div><div class="protonmail_signature_block-proton">Sent with <a rel="noopener noreferrer" href="https://protonmail.com/" target="_blank">ProtonMail</a> Secure Email.</div></div><div><br></div>