--- rpl/src/instructions_s10.c 2012/12/19 09:58:26 1.66 +++ rpl/src/instructions_s10.c 2013/02/27 17:11:44 1.69 @@ -1,7 +1,7 @@ /* ================================================================================ - RPL/2 (R) version 4.1.12 - Copyright (C) 1989-2012 Dr. BERTRAND Joël + RPL/2 (R) version 4.1.13 + Copyright (C) 1989-2013 Dr. BERTRAND Joël This file is part of RPL/2. @@ -657,6 +657,7 @@ instruction_sqlconnect(struct_processus printf(" { \"mysql\" \"server\" \"database\" " "\"user\" \"password\" } SQLCONNECT\n"); + printf(" { \"sqlite\" \"file\" } SQLCONNECT\n"); printf(" { \"postgresql:iso-8859-1\" \"server\" " "\"database\" \"user\" \"password\" port }\n"); printf(" SQLCONNECT\n"); @@ -889,6 +890,21 @@ instruction_sqldisconnect(struct_process drapeau = d_faux; # endif } + else if (strcmp((*((struct_connecteur_sql *) (*s_objet).objet)) + .type, "SQLITE") == 0) + { + if ((*((struct_connecteur_sql *) (*(*l_element_courant) + .donnee).objet)).descripteur.sqlite == + (*((struct_connecteur_sql *) (*s_objet).objet)) + .descripteur.sqlite) + { + drapeau = d_vrai; + } + else + { + drapeau = d_faux; + } + } else { BUG(1, printf("SQL type '%s' not allowed!",