<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cap CDS 7x - Postgres in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cap-cds-7x-postgres/m-p/12758468#M2022352</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I might not be understanding your question correctly, but think in this case, the same pattern as for sqlite and HANA applies, documented here: &lt;A href="https://cap.cloud.sap/docs/guides/databases#sqlite-and-hana-functions" target="test_blank"&gt;https://cap.cloud.sap/docs/guides/databases#sqlite-and-hana-functions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Simon&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 15:29:31 GMT</pubDate>
    <dc:creator>simon_oswald</dc:creator>
    <dc:date>2023-07-13T15:29:31Z</dc:date>
    <item>
      <title>Cap CDS 7x - Postgres</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cap-cds-7x-postgres/m-p/12758467#M2022351</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;//view.cds
view dummy as select from dummy_table{
key id,
TO_VARCHAR(TO_DATE(comm_doc.create_date )) as create_date  : String(20)
}

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;comand:&lt;/P&gt;
  &lt;P&gt;cds deploy --profile pg&lt;/P&gt;
  &lt;P&gt;error:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;error: function to_date(date, unknown) does not exist&lt;BR /&gt;    at /workspace/node_modules/pg/lib/client.js:526:17&lt;BR /&gt;    at processTicksAndRejections (node:internal/process/task_queues:96:5)&lt;BR /&gt;    at async Object.run (/workspace/node_modules/@cap-js/postgres/lib/PostgresService.js:110:24)&lt;BR /&gt;    at async next (/workspace/node_modules/@sap/cds/lib/srv/srv-dispatch.js:79:17)&lt;BR /&gt;    at async PostgresService.handle (/workspace/node_modules/@sap/cds/lib/srv/srv-dispatch.js:77:10)&lt;BR /&gt;    at async Promise.all (index 72)&lt;BR /&gt;    at async Function.cds_deploy_create [as create] (/workspace/node_modules/@sap/cds/lib/dbs/cds-deploy.js:126:3)&lt;BR /&gt;    at async _deploy (/workspace/node_modules/@sap/cds/lib/dbs/cds-deploy.js:37:19)&lt;BR /&gt;    at async Object.to (/workspace/node_modules/@sap/cds/lib/dbs/cds-deploy.js:47:9)&lt;BR /&gt;    at async Object.deploy_to_sql [as deploy] (/usr/local/share/npm-global/lib/node_modules/@sap/cds-dk/bin/deploy/to-postgres.js:6:9) {&lt;BR /&gt;  length: 216,&lt;BR /&gt;  severity: 'ERROR',&lt;BR /&gt;  code: '42883',&lt;BR /&gt;  detail: undefined,&lt;BR /&gt;  hint: 'No function matches the given name and argument types. You might need to add explicit type casts.',&lt;BR /&gt;  position: '717',&lt;BR /&gt;  internalPosition: undefined,&lt;BR /&gt;  internalQuery: undefined,&lt;BR /&gt;  where: undefined,&lt;BR /&gt;  schema: undefined,&lt;BR /&gt;  table: undefined,&lt;BR /&gt;  column: undefined,&lt;BR /&gt;  dataType: undefined,&lt;BR /&gt;  constraint: undefined,&lt;BR /&gt;  file: 'parse_func.c',&lt;BR /&gt;  line: '629',&lt;BR /&gt;  routine: 'ParseFuncOrColumn'&lt;BR /&gt;}&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;guide&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://cap.cloud.sap/docs/guides/databases-postgres" target="test_blank"&gt;https://cap.cloud.sap/docs/guides/databases-postgres&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;how is it possible to use the TO_VARCHAR and TO_DATE functions with cap cds to serve hana cloud and postgres banks?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 23:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cap-cds-7x-postgres/m-p/12758467#M2022351</guid>
      <dc:creator>LuizGomes</dc:creator>
      <dc:date>2023-07-11T23:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cap CDS 7x - Postgres</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cap-cds-7x-postgres/m-p/12758468#M2022352</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I might not be understanding your question correctly, but think in this case, the same pattern as for sqlite and HANA applies, documented here: &lt;A href="https://cap.cloud.sap/docs/guides/databases#sqlite-and-hana-functions" target="test_blank"&gt;https://cap.cloud.sap/docs/guides/databases#sqlite-and-hana-functions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Simon&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 15:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cap-cds-7x-postgres/m-p/12758468#M2022352</guid>
      <dc:creator>simon_oswald</dc:creator>
      <dc:date>2023-07-13T15:29:31Z</dc:date>
    </item>
  </channel>
</rss>

