[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Connect]


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT
    ID
  FROM
    USUARIOS
  WHERE USUARIO = :USUARIO AND
        PASS = :PASS AND
        ACTIVO = 1

  Plan: PLAN (USUARIOS NATURAL)


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Start transaction]


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Prepare] Select F.RDB$COMPUTED_BLR, F.RDB$DEFAULT_VALUE, R.RDB$DEFAULT_VALUE, R.RDB$FIELD_NAME from RDB$RELATION_FIELDS R, RDB$FIELDS F where R.RDB$RELATION_NAME = :RELATION and R.RDB$FIELD_SOURCE = F.RDB$FIELD_NAME and ((not F.RDB$COMPUTED_BLR is NULL) or      (not (F.RDB$DEFAULT_VALUE is NULL and R.RDB$DEFAULT_VALUE is NULL))) 

  Plan: PLAN JOIN (R INDEX (RDB$INDEX_4), F INDEX (RDB$INDEX_2))


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Execute] Select F.RDB$COMPUTED_BLR, F.RDB$DEFAULT_VALUE, R.RDB$DEFAULT_VALUE, R.RDB$FIELD_NAME from RDB$RELATION_FIELDS R, RDB$FIELDS F where R.RDB$RELATION_NAME = :RELATION and R.RDB$FIELD_SOURCE = F.RDB$FIELD_NAME and ((not F.RDB$COMPUTED_BLR is NULL) or      (not (F.RDB$DEFAULT_VALUE is NULL and R.RDB$DEFAULT_VALUE is NULL))) 

  RELATION = USUARIOS


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT RDB$FIELD_NAME, RDB$FIELD_POSITION FROM RDB$RELATION_CONSTRAINTS RR JOIN RDB$INDEX_SEGMENTS RI ON      RR.RDB$INDEX_NAME = RI.RDB$INDEX_NAME WHERE RDB$RELATION_NAME = :relation_name AND       RDB$CONSTRAINT_TYPE = 'PRIMARY KEY ' ORDER BY RDB$FIELD_POSITION 

  Plan: PLAN SORT (JOIN (RR INDEX (RDB$INDEX_42), RI INDEX (RDB$INDEX_6)))


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Execute] SELECT RDB$FIELD_NAME, RDB$FIELD_POSITION FROM RDB$RELATION_CONSTRAINTS RR JOIN RDB$INDEX_SEGMENTS RI ON      RR.RDB$INDEX_NAME = RI.RDB$INDEX_NAME WHERE RDB$RELATION_NAME = :relation_name AND       RDB$CONSTRAINT_TYPE = 'PRIMARY KEY ' ORDER BY RDB$FIELD_POSITION 

  RELATION_NAME = USUARIOS


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Commit (Hard commit)]


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Execute] SELECT
    ID
  FROM
    USUARIOS
  WHERE USUARIO = :USUARIO AND
        PASS = :PASS AND
        ACTIVO = 1

  USUARIO = Luis
  PASS = 1


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT 
    PERFILES.PERFIL
  FROM
    PERFILES, PERFILES_USUARIOS
  WHERE PERFILES_USUARIOS.ID_USUARIO = :ID_USUARIO
  AND PERFILES.ID = PERFILES_USUARIOS.ID_PERFIL

  Plan: PLAN JOIN (PERFILES_USUARIOS NATURAL, PERFILES INDEX (PK_PERFILES))


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Start transaction]


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Execute] Select F.RDB$COMPUTED_BLR, F.RDB$DEFAULT_VALUE, R.RDB$DEFAULT_VALUE, R.RDB$FIELD_NAME from RDB$RELATION_FIELDS R, RDB$FIELDS F where R.RDB$RELATION_NAME = :RELATION and R.RDB$FIELD_SOURCE = F.RDB$FIELD_NAME and ((not F.RDB$COMPUTED_BLR is NULL) or      (not (F.RDB$DEFAULT_VALUE is NULL and R.RDB$DEFAULT_VALUE is NULL))) 

  RELATION = PERFILES


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Execute] SELECT RDB$FIELD_NAME, RDB$FIELD_POSITION FROM RDB$RELATION_CONSTRAINTS RR JOIN RDB$INDEX_SEGMENTS RI ON      RR.RDB$INDEX_NAME = RI.RDB$INDEX_NAME WHERE RDB$RELATION_NAME = :relation_name AND       RDB$CONSTRAINT_TYPE = 'PRIMARY KEY ' ORDER BY RDB$FIELD_POSITION 

  RELATION_NAME = PERFILES


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Commit (Hard commit)]


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Execute] SELECT 
    PERFILES.PERFIL
  FROM
    PERFILES, PERFILES_USUARIOS
  WHERE PERFILES_USUARIOS.ID_USUARIO = :ID_USUARIO
  AND PERFILES.ID = PERFILES_USUARIOS.ID_PERFIL

  ID_USUARIO = 2


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT 
    ID_EMPRESA
  FROM
    EMPRESAS_USUARIOS
  WHERE ID_USUARIO = :ID_USUARIO

  Plan: PLAN (EMPRESAS_USUARIOS NATURAL)


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Start transaction]


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Execute] Select F.RDB$COMPUTED_BLR, F.RDB$DEFAULT_VALUE, R.RDB$DEFAULT_VALUE, R.RDB$FIELD_NAME from RDB$RELATION_FIELDS R, RDB$FIELDS F where R.RDB$RELATION_NAME = :RELATION and R.RDB$FIELD_SOURCE = F.RDB$FIELD_NAME and ((not F.RDB$COMPUTED_BLR is NULL) or      (not (F.RDB$DEFAULT_VALUE is NULL and R.RDB$DEFAULT_VALUE is NULL))) 

  RELATION = EMPRESAS_USUARIOS


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Execute] SELECT RDB$FIELD_NAME, RDB$FIELD_POSITION FROM RDB$RELATION_CONSTRAINTS RR JOIN RDB$INDEX_SEGMENTS RI ON      RR.RDB$INDEX_NAME = RI.RDB$INDEX_NAME WHERE RDB$RELATION_NAME = :relation_name AND       RDB$CONSTRAINT_TYPE = 'PRIMARY KEY ' ORDER BY RDB$FIELD_POSITION 

  RELATION_NAME = EMPRESAS_USUARIOS


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Commit (Hard commit)]


>
[30/08/2007 15:20:58]
[Application: FactuGES (Servidor)]
: [Execute] SELECT 
    ID_EMPRESA
  FROM
    EMPRESAS_USUARIOS
  WHERE ID_USUARIO = :ID_USUARIO

  ID_USUARIO = 2


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT
    ID, NIF_CIF, NOMBRE, RAZON_SOCIAL, CALLE, POBLACION, 
    PROVINCIA, CODIGO_POSTAL, TELEFONO_1, TELEFONO_2, MOVIL_1, 
    MOVIL_2, FAX, EMAIL_1, EMAIL_2, PAGINA_WEB, NOTAS, 
    FECHA_ALTA, FECHA_MODIFICACION, USUARIO, LOGOTIPO,
    REGISTRO_MERCANTIL, IVA
  FROM
    EMPRESAS WHERE (ID IN (1)) 

  Plan: PLAN (EMPRESAS INDEX (PK_EMPRESAS))


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Start transaction]


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] Select F.RDB$COMPUTED_BLR, F.RDB$DEFAULT_VALUE, R.RDB$DEFAULT_VALUE, R.RDB$FIELD_NAME from RDB$RELATION_FIELDS R, RDB$FIELDS F where R.RDB$RELATION_NAME = :RELATION and R.RDB$FIELD_SOURCE = F.RDB$FIELD_NAME and ((not F.RDB$COMPUTED_BLR is NULL) or      (not (F.RDB$DEFAULT_VALUE is NULL and R.RDB$DEFAULT_VALUE is NULL))) 

  RELATION = EMPRESAS


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] SELECT RDB$FIELD_NAME, RDB$FIELD_POSITION FROM RDB$RELATION_CONSTRAINTS RR JOIN RDB$INDEX_SEGMENTS RI ON      RR.RDB$INDEX_NAME = RI.RDB$INDEX_NAME WHERE RDB$RELATION_NAME = :relation_name AND       RDB$CONSTRAINT_TYPE = 'PRIMARY KEY ' ORDER BY RDB$FIELD_POSITION 

  RELATION_NAME = EMPRESAS


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Commit (Hard commit)]


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] SELECT
    ID, NIF_CIF, NOMBRE, RAZON_SOCIAL, CALLE, POBLACION, 
    PROVINCIA, CODIGO_POSTAL, TELEFONO_1, TELEFONO_2, MOVIL_1, 
    MOVIL_2, FAX, EMAIL_1, EMAIL_2, PAGINA_WEB, NOTAS, 
    FECHA_ALTA, FECHA_MODIFICACION, USUARIO, LOGOTIPO,
    REGISTRO_MERCANTIL, IVA
  FROM
    EMPRESAS WHERE (ID IN (1)) 



>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT 
    ID, ID_EMPRESA, NOMBRE, ENTIDAD, SUCURSAL, DC, CUENTA, 
    SUFIJO_N19, SUFIJO_N58
  FROM
    EMPRESAS_DATOS_BANCO
WHERE ID_EMPRESA = :ID_EMPRESA

  Plan: PLAN (EMPRESAS_DATOS_BANCO INDEX (FK_EMPRESAS_DATOS_BANCO))


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Start transaction]


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] Select F.RDB$COMPUTED_BLR, F.RDB$DEFAULT_VALUE, R.RDB$DEFAULT_VALUE, R.RDB$FIELD_NAME from RDB$RELATION_FIELDS R, RDB$FIELDS F where R.RDB$RELATION_NAME = :RELATION and R.RDB$FIELD_SOURCE = F.RDB$FIELD_NAME and ((not F.RDB$COMPUTED_BLR is NULL) or      (not (F.RDB$DEFAULT_VALUE is NULL and R.RDB$DEFAULT_VALUE is NULL))) 

  RELATION = EMPRESAS_DATOS_BANCO


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] SELECT RDB$FIELD_NAME, RDB$FIELD_POSITION FROM RDB$RELATION_CONSTRAINTS RR JOIN RDB$INDEX_SEGMENTS RI ON      RR.RDB$INDEX_NAME = RI.RDB$INDEX_NAME WHERE RDB$RELATION_NAME = :relation_name AND       RDB$CONSTRAINT_TYPE = 'PRIMARY KEY ' ORDER BY RDB$FIELD_POSITION 

  RELATION_NAME = EMPRESAS_DATOS_BANCO


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Commit (Hard commit)]


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] SELECT 
    ID, ID_EMPRESA, NOMBRE, ENTIDAD, SUCURSAL, DC, CUENTA, 
    SUFIJO_N19, SUFIJO_N58
  FROM
    EMPRESAS_DATOS_BANCO
WHERE ID_EMPRESA = :ID_EMPRESA

  ID_EMPRESA = 1


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT
    ID, NIF_CIF, NOMBRE, RAZON_SOCIAL, CALLE, POBLACION, 
    PROVINCIA, CODIGO_POSTAL, TELEFONO_1, TELEFONO_2, MOVIL_1, 
    MOVIL_2, FAX, EMAIL_1, EMAIL_2, PAGINA_WEB, NOTAS, 
    FECHA_ALTA, FECHA_MODIFICACION, USUARIO, LOGOTIPO,
    REGISTRO_MERCANTIL, IVA
  FROM
    EMPRESAS WHERE (ID IN (1)) 

  Plan: PLAN (EMPRESAS INDEX (PK_EMPRESAS))


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] SELECT
    ID, NIF_CIF, NOMBRE, RAZON_SOCIAL, CALLE, POBLACION, 
    PROVINCIA, CODIGO_POSTAL, TELEFONO_1, TELEFONO_2, MOVIL_1, 
    MOVIL_2, FAX, EMAIL_1, EMAIL_2, PAGINA_WEB, NOTAS, 
    FECHA_ALTA, FECHA_MODIFICACION, USUARIO, LOGOTIPO,
    REGISTRO_MERCANTIL, IVA
  FROM
    EMPRESAS WHERE (ID IN (1)) 



>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT 
    ID, ID_EMPRESA, NOMBRE, ENTIDAD, SUCURSAL, DC, CUENTA, 
    SUFIJO_N19, SUFIJO_N58
  FROM
    EMPRESAS_DATOS_BANCO
WHERE ID_EMPRESA = :ID_EMPRESA

  Plan: PLAN (EMPRESAS_DATOS_BANCO INDEX (FK_EMPRESAS_DATOS_BANCO))


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] SELECT 
    ID, ID_EMPRESA, NOMBRE, ENTIDAD, SUCURSAL, DC, CUENTA, 
    SUFIJO_N19, SUFIJO_N58
  FROM
    EMPRESAS_DATOS_BANCO
WHERE ID_EMPRESA = :ID_EMPRESA

  ID_EMPRESA = 1


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT
    ID, NIF_CIF, NOMBRE, RAZON_SOCIAL, CALLE, POBLACION, 
    PROVINCIA, CODIGO_POSTAL, TELEFONO_1, TELEFONO_2, MOVIL_1, 
    MOVIL_2, FAX, EMAIL_1, EMAIL_2, PAGINA_WEB, NOTAS, 
    FECHA_ALTA, FECHA_MODIFICACION, USUARIO, LOGOTIPO,
    REGISTRO_MERCANTIL, IVA
  FROM
    EMPRESAS WHERE (EMPRESAS.ID = 1) AND (ID IN (1)) 

  Plan: PLAN (EMPRESAS INDEX (PK_EMPRESAS))


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] SELECT
    ID, NIF_CIF, NOMBRE, RAZON_SOCIAL, CALLE, POBLACION, 
    PROVINCIA, CODIGO_POSTAL, TELEFONO_1, TELEFONO_2, MOVIL_1, 
    MOVIL_2, FAX, EMAIL_1, EMAIL_2, PAGINA_WEB, NOTAS, 
    FECHA_ALTA, FECHA_MODIFICACION, USUARIO, LOGOTIPO,
    REGISTRO_MERCANTIL, IVA
  FROM
    EMPRESAS WHERE (EMPRESAS.ID = 1) AND (ID IN (1)) 



>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Prepare] SELECT 
    ID, ID_EMPRESA, NOMBRE, ENTIDAD, SUCURSAL, DC, CUENTA, 
    SUFIJO_N19, SUFIJO_N58
  FROM
    EMPRESAS_DATOS_BANCO
WHERE ID_EMPRESA = :ID_EMPRESA

  Plan: PLAN (EMPRESAS_DATOS_BANCO INDEX (FK_EMPRESAS_DATOS_BANCO))


>
[30/08/2007 15:21:09]
[Application: FactuGES (Servidor)]
: [Execute] SELECT 
    ID, ID_EMPRESA, NOMBRE, ENTIDAD, SUCURSAL, DC, CUENTA, 
    SUFIJO_N19, SUFIJO_N58
  FROM
    EMPRESAS_DATOS_BANCO
WHERE ID_EMPRESA = :ID_EMPRESA

  ID_EMPRESA = 1


>
