Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Окончание функции для получения api провайдера
  2. Querying SQL: select * from apikeys where id = :apikeyid
  3. Querying SQL: select * from apiprovidermethods where id = :id
  4. Querying SQL: select * from smartfilters where "ApplicationId" = :appid
  5. Querying SQL: select "FilterId" from smartfiltersext where "FilterId" in (select id from smartfilters where "ApplicationId" = :appid) and ("Value1" like '%#%' or "Value2" like '%#%')
  6. Querying SQL: select * from applications where id = :appid
  7. Categories.find()
  8. Loading "promo_db" application component
  9. Opening DB connection
  10. Querying SQL: SELECT a.attname, LOWER(format_type(a.atttypid, a.atttypmod)) AS type, d.adsrc, a.attnotnull, a.atthasdef,
  11.         pg_catalog.col_description(a.attrelid, a.attnum) AS comment
  12. FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  13. WHERE a.attnum > 0 AND NOT a.attisdropped
  14.         AND a.attrelid = (SELECT oid FROM pg_catalog.pg_class WHERE relname=:table
  15.                 AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname = :schema))
  16. ORDER BY a.attnum. Bound with :table='categories', :schema='promo_ru'
  17. Querying SQL: SELECT conname, consrc, contype, indkey FROM (
  18.         SELECT
  19.                 conname,
  20.                 CASE WHEN contype='f' THEN
  21.                         pg_catalog.pg_get_constraintdef(oid)
  22.                 ELSE
  23.                         'CHECK (' || consrc || ')'
  24.                 END AS consrc,
  25.                 contype,
  26.                 conrelid AS relid,
  27.                 NULL AS indkey
  28.         FROM
  29.                 pg_catalog.pg_constraint
  30.         WHERE
  31.                 contype IN ('f', 'c')
  32.         UNION ALL
  33.         SELECT
  34.                 pc.relname,
  35.                 NULL,
  36.                 CASE WHEN indisprimary THEN
  37.                                 'p'
  38.                 ELSE
  39.                                 'u'
  40.                 END,
  41.                 pi.indrelid,
  42.                 indkey
  43.         FROM
  44.                 pg_catalog.pg_class pc,
  45.                 pg_catalog.pg_index pi
  46.         WHERE
  47.                 pc.oid=pi.indexrelid
  48.                 AND EXISTS (
  49.                         SELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c
  50.                         ON (d.refclassid = c.tableoid AND d.refobjid = c.oid)
  51.                         WHERE d.classid = pc.tableoid AND d.objid = pc.oid AND d.deptype = 'i' AND c.contype IN ('u', 'p')
  52.         )
  53. ) AS sub
  54. WHERE relid = (SELECT oid FROM pg_catalog.pg_class WHERE relname=:table
  55.         AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace
  56.         WHERE nspname=:schema)). Bound with :table='categories', :schema='promo_ru'
  57. Querying SQL: SELECT attnum, attname FROM pg_catalog.pg_attribute WHERE
  58.         attrelid=(
  59.                 SELECT oid FROM pg_catalog.pg_class WHERE relname=:table AND relnamespace=(
  60.                         SELECT oid FROM pg_catalog.pg_namespace WHERE nspname=:schema
  61.                 )
  62.         )
  63.         AND attnum IN (1). Bound with :table='categories', :schema='promo_ru'
  64. Querying SQL: SELECT * FROM "promo_ru"."categories" "t" WHERE id = :id LIMIT 1. Bound with :id=0
  65. PApplications.find()
  66. Querying SQL: SELECT a.attname, LOWER(format_type(a.atttypid, a.atttypmod)) AS type, d.adsrc, a.attnotnull, a.atthasdef,
  67.         pg_catalog.col_description(a.attrelid, a.attnum) AS comment
  68. FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  69. WHERE a.attnum > 0 AND NOT a.attisdropped
  70.         AND a.attrelid = (SELECT oid FROM pg_catalog.pg_class WHERE relname=:table
  71.                 AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname = :schema))
  72. ORDER BY a.attnum. Bound with :table='papplications', :schema='promo_ru'
  73. Querying SQL: SELECT conname, consrc, contype, indkey FROM (
  74.         SELECT
  75.                 conname,
  76.                 CASE WHEN contype='f' THEN
  77.                         pg_catalog.pg_get_constraintdef(oid)
  78.                 ELSE
  79.                         'CHECK (' || consrc || ')'
  80.                 END AS consrc,
  81.                 contype,
  82.                 conrelid AS relid,
  83.                 NULL AS indkey
  84.         FROM
  85.                 pg_catalog.pg_constraint
  86.         WHERE
  87.                 contype IN ('f', 'c')
  88.         UNION ALL
  89.         SELECT
  90.                 pc.relname,
  91.                 NULL,
  92.                 CASE WHEN indisprimary THEN
  93.                                 'p'
  94.                 ELSE
  95.                                 'u'
  96.                 END,
  97.                 pi.indrelid,
  98.                 indkey
  99.         FROM
  100.                 pg_catalog.pg_class pc,
  101.                 pg_catalog.pg_index pi
  102.         WHERE
  103.                 pc.oid=pi.indexrelid
  104.                 AND EXISTS (
  105.                         SELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c
  106.                         ON (d.refclassid = c.tableoid AND d.refobjid = c.oid)
  107.                         WHERE d.classid = pc.tableoid AND d.objid = pc.oid AND d.deptype = 'i' AND c.contype IN ('u', 'p')
  108.         )
  109. ) AS sub
  110. WHERE relid = (SELECT oid FROM pg_catalog.pg_class WHERE relname=:table
  111.         AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace
  112.         WHERE nspname=:schema)). Bound with :table='papplications', :schema='promo_ru'
  113. Querying SQL: SELECT attnum, attname FROM pg_catalog.pg_attribute WHERE
  114.         attrelid=(
  115.                 SELECT oid FROM pg_catalog.pg_class WHERE relname=:table AND relnamespace=(
  116.                         SELECT oid FROM pg_catalog.pg_namespace WHERE nspname=:schema
  117.                 )
  118.         )
  119.         AND attnum IN (1). Bound with :table='papplications', :schema='promo_ru'
  120. Querying SQL: SELECT * FROM "promo_ru"."papplications" "t" WHERE "TenantName" = :tname and "TenantAppId" = :appid LIMIT 1. Bound with :tname='arierra', :appid=672
  121. Querying SQL: select
  122.                 (select count(id) from senderpool where "ApplicationId" = :appid and "SendType" = 'Email') as sentemail,
  123.                 (select COALESCE(sum("SMSPartCount"::integer), 0) from senderpool where "ApplicationId" = :appid and "SendType" = 'SMS') as sentsms,
  124.                 (select count(id) from senderpool where "ApplicationId" = :appid and "SendType" = 'Push') as sentpush
  125. Objects.find()
  126. Querying SQL: SELECT a.attname, LOWER(format_type(a.atttypid, a.atttypmod)) AS type, d.adsrc, a.attnotnull, a.atthasdef,
  127.         pg_catalog.col_description(a.attrelid, a.attnum) AS comment
  128. FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  129. WHERE a.attnum > 0 AND NOT a.attisdropped
  130.         AND a.attrelid = (SELECT oid FROM pg_catalog.pg_class WHERE relname=:table
  131.                 AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname = :schema))
  132. ORDER BY a.attnum
  133. Querying SQL: SELECT conname, consrc, contype, indkey FROM (
  134.         SELECT
  135.                 conname,
  136.                 CASE WHEN contype='f' THEN
  137.                         pg_catalog.pg_get_constraintdef(oid)
  138.                 ELSE
  139.                         'CHECK (' || consrc || ')'
  140.                 END AS consrc,
  141.                 contype,
  142.                 conrelid AS relid,
  143.                 NULL AS indkey
  144.         FROM
  145.                 pg_catalog.pg_constraint
  146.         WHERE
  147.                 contype IN ('f', 'c')
  148.         UNION ALL
  149.         SELECT
  150.                 pc.relname,
  151.                 NULL,
  152.                 CASE WHEN indisprimary THEN
  153.                                 'p'
  154.                 ELSE
  155.                                 'u'
  156.                 END,
  157.                 pi.indrelid,
  158.                 indkey
  159.         FROM
  160.                 pg_catalog.pg_class pc,
  161.                 pg_catalog.pg_index pi
  162.         WHERE
  163.                 pc.oid=pi.indexrelid
  164.                 AND EXISTS (
  165.                         SELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c
  166.                         ON (d.refclassid = c.tableoid AND d.refobjid = c.oid)
  167.                         WHERE d.classid = pc.tableoid AND d.objid = pc.oid AND d.deptype = 'i' AND c.contype IN ('u', 'p')
  168.         )
  169. ) AS sub
  170. WHERE relid = (SELECT oid FROM pg_catalog.pg_class WHERE relname=:table
  171.         AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace
  172.         WHERE nspname=:schema))
  173. Querying SQL: SELECT attnum, attname FROM pg_catalog.pg_attribute WHERE
  174.         attrelid=(
  175.                 SELECT oid FROM pg_catalog.pg_class WHERE relname=:table AND relnamespace=(
  176.                         SELECT oid FROM pg_catalog.pg_namespace WHERE nspname=:schema
  177.                 )
  178.         )
  179.         AND attnum IN (1)
  180. Querying SQL: SELECT * FROM "mobsted_ru"."objects" "t" WHERE id = :id LIMIT 1
  181. Querying SQL: select t."id", t."AppId", t."ColumnName", t."ColumnType",
  182.                     t."Protected", t."SystemColumn",
  183.                     t."SMVisible", t."Depends", t."AutoRegistration", t."RestAuthType",
  184.                     t."RestUrl", t."RestRequestType", t."RestResponseType", t."RestKey", t."RestValue",
  185.  
  186.                     t."RestLimit", t."DbHost", t."DbName", t."DbUser",
  187.                     t."DbPassword", t."DbSql", t."DbKey", t."DbValue",
  188.                     t."RestConnectionName", t."DbConnectionName", t."UseRestOrDb", t."UseState",
  189.                     t."RestTemplate", t."DbTemplate", t."RestUser", t."RestPassword",
  190.                     t."UseAsName", t."InShortViewSM", t."LastModified", t."DefaultValue", t."SortOrder", t."Visible" from objectcolumns t where t."AppId" = :appid order by t."SortOrder"
  191. Querying SQL: SELECT "ColumnName" FROM objectcolumns WHERE "AppId" = :appid AND "UseState" = 1
  192. Tenants.find()
  193. Querying SQL: SELECT a.attname, LOWER(format_type(a.atttypid, a.atttypmod)) AS type, d.adsrc, a.attnotnull, a.atthasdef,
  194.         pg_catalog.col_description(a.attrelid, a.attnum) AS comment
  195. FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
  196. WHERE a.attnum > 0 AND NOT a.attisdropped
  197.         AND a.attrelid = (SELECT oid FROM pg_catalog.pg_class WHERE relname=:table
  198.                 AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname = :schema))
  199. ORDER BY a.attnum. Bound with :table='tenants', :schema='tenantlist_ru'
  200. Querying SQL: SELECT conname, consrc, contype, indkey FROM (
  201.         SELECT
  202.                 conname,
  203.                 CASE WHEN contype='f' THEN
  204.                         pg_catalog.pg_get_constraintdef(oid)
  205.                 ELSE
  206.                         'CHECK (' || consrc || ')'
  207.                 END AS consrc,
  208.                 contype,
  209.                 conrelid AS relid,
  210.                 NULL AS indkey
  211.         FROM
  212.                 pg_catalog.pg_constraint
  213.         WHERE
  214.                 contype IN ('f', 'c')
  215.         UNION ALL
  216.         SELECT
  217.                 pc.relname,
  218.                 NULL,
  219.                 CASE WHEN indisprimary THEN
  220.                                 'p'
  221.                 ELSE
  222.                                 'u'
  223.                 END,
  224.                 pi.indrelid,
  225.                 indkey
  226.         FROM
  227.                 pg_catalog.pg_class pc,
  228.                 pg_catalog.pg_index pi
  229.         WHERE
  230.                 pc.oid=pi.indexrelid
  231.                 AND EXISTS (
  232.                         SELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c
  233.                         ON (d.refclassid = c.tableoid AND d.refobjid = c.oid)
  234.                         WHERE d.classid = pc.tableoid AND d.objid = pc.oid AND d.deptype = 'i' AND c.contype IN ('u', 'p')
  235.         )
  236. ) AS sub
  237. WHERE relid = (SELECT oid FROM pg_catalog.pg_class WHERE relname=:table
  238.         AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace
  239.         WHERE nspname=:schema)). Bound with :table='tenants', :schema='tenantlist_ru'
  240. Querying SQL: SELECT attnum, attname FROM pg_catalog.pg_attribute WHERE
  241.         attrelid=(
  242.                 SELECT oid FROM pg_catalog.pg_class WHERE relname=:table AND relnamespace=(
  243.                         SELECT oid FROM pg_catalog.pg_namespace WHERE nspname=:schema
  244.                 )
  245.         )
  246.         AND attnum IN (1). Bound with :table='tenants', :schema='tenantlist_ru'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement