When I run ant export.database, I get the below error.
It shows error in procedure which is created by me.
Error:
********************************************************
Found differences in MOM_INPUTBOM
********************************************************
V_SEQUENCECOUNT NUMBER;
V_RAWCOUNT NUMBER[ +] := 0;
V_CNTSEQPRD NUMBER [ +] V_PPV1 VARCHAR2(32);
V_CNT1 NUMBER[ +] := 0;
[ +])[ ] RAISE_APPLICATION_ERROR(-20000,
'There is no products in I/O Products'[ +])[ ] ;
[now][NOW+](),V_USER_ID,[now][NOW+]
RAISE_APPLICATION_ERROR(-20000, 'Raw Material already inserted'[ +])[
] ; [ +]
********************************************************
Warning: Some of the functions and triggers which are being exported have been
detected to change if they are inserted in a PostgreSQL database
again. If you are working on an Oracle-only environment, you should
not worry about this. If you are working with PostgreSQL, you should
check that the functions and triggers are inserted in a correct way
when applying the exported module. The affected objects are: Function
[notation=MOM_OUTSOURCESO(VARCHAR); ] Function
[notation=MOM_INPUTBOM(VARCHAR); ] Database [name=Oracle server; 515
tables; 3 sequences; 67 views; 323 functions; 341 triggers] Validating
Module...
This page PL-SQL code rules to write Oracle and Postgresql code can help you.
Related
I have a problem with electron-builder since upgrading to Electron 10.1.2. My build now fails at rebuild for keyboard-layout. The rebuild only fails for Windows, not Mac. I don't know where to open this issue so I am asking here :).
My setup:
angular: 9.0.7
electron: 10.1.2
electron-builder: 22.8.x
The problem started when I updated electron from 9.0.0 to 10.1.2. Nothing else changed.
The problem:
When calling electron-builder with command electron-builder.cmd --x64 -p always -w rebuild of keyboard-layout is called as one of the steps as:
> keyboard-layout#2.0.16 install C:\Users\<me>\<dir1>\<dir2>\dist\node_modules\keyboard-layout
> node-gyp rebuild
That fails with:
...
win_delay_load_hook.cc
c:\users\<me>\.electron-gyp\10.1.2\include\node\v8.h(5378): error C2220: warning treated as error - no 'object' file generated (compiling source file ..\src\keyboard-layout-manager-windows.cc) [C:\Users\<me>\<dir1>\<dir2>\dist\node_modules\keyboard-layout\build\keyboard-layout-manager.vcxproj]
c:\users\<me>\.electron-gyp\10.1.2\include\node\v8.h(5378): warning C4309: 'static_cast': truncation of constant value (compiling source file ..\src\keyboard-layout-manager-windows.cc) [C:\Users\<me>\<dir1>\<dir2>\dist\node_modules\keyboard-layout\build\keyboard-layout-manager.vcxproj]
c:\users\<me>\.electron-gyp\10.1.2\include\node\v8.h(5378): error C2220: warning treated as error - no 'object' file generated (compiling source file ..\src\keyboard-layout-manager.cc) [C:\Users\<me>\<dir1>\<dir2>\dist\node_modules\keyboard-layout\build\keyboard-layout-manager.vcxproj]
c:\users\<me>\.electron-gyp\10.1.2\include\node\v8.h(5378): warning C4309: 'static_cast': truncation of constant value (compiling source file ..\src\keyboard-layout-manager.cc) [C:\Users\<me>\<dir1>\<dir2>\dist\node_modules\keyboard-layout\build\keyboard-layout-manager.vcxproj]
Done Building Project "C:\Users\<me>\<dir1>\<dir2>\dist\node_modules\keyboard-layout\build\keyboard-layout-manager.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\<me>\<dir1>\<dir2>\dist\node_modules\keyboard-layout\build\binding.sln" (default targets) -- FAILED.
Build FAILED.
...
What I have tried that DID NOT help:
Change binding.gyp in node_modules/keyboard-layout to (chnages marked with <---):
['OS=="win"', {
"sources": [
"src/keyboard-layout-manager-windows.cc",
],
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1, # /EHsc
'WarnAsError': 'false', # <--- I chnaged this from true to false
},
},
'msvs_disabled_warnings': [
4018, # signed/unsigned mismatch
2220, # <--- I added this
4244, # conversion from 'type1' to 'type2', possible loss of data
4267, # conversion from 'size_t' to 'type', possible loss of data
4302, # 'type cast': truncation from 'HKL' to 'UINT'
4311, # 'type cast': pointer truncation from 'HKL' to 'UINT'
4530, # C++ exception handler used, but unwind semantics are not enabled
4506, # no definition for inline function
4577, # 'noexcept' used with no exception handling mode specified
4996, # function was declared deprecated
],
}], # OS=="win"
What I have tried that DID help:
Electron 10.x.y updated v8 to 8.5 (Electron 10.0.0 release notes) and looking at line that causes the error (...\.electron-gyp\10.1.2\include\node\v8.h(5378)) I see this:
static constexpr size_t kMaxLength =
internal::kApiSystemPointerSize == 4
? internal::kSmiMaxValue
: static_cast<size_t>(uint64_t{1} << 32); <--- Line 5378
When I compare v8.h files from ...\.electron-gyp\10.1.2\include\node\v8.h and ...\.electron-gyp\9.0.0\include\node\v8.h, there is a change in this exact line.
Same line in old version:
static constexpr size_t kMaxLength = internal::kApiSystemPointerSize == 4
? internal::kSmiMaxValue
: 0xFFFFFFFF;
If I chnage static_cast<size_t>(uint64_t{1} << 32) to 0xFFFFFFFF, build succeedes.
My understanding ends here.
Are the old and new lines not theoretically the same? One shifted for 32 bits results in 0xFFFFFFFF?
What can I do to fix this issue and what could be the reason for this change?
Why is this problem only on Windows?
What I have tried that DID NOT help:
'WarnAsError': 'false' should do the trick; however the error was reported for two different files (..\src\keyboard-layout-manager.cc and ..\src\keyboard-layout-manager-windows.cc) so you'd have to modify the build rules for both of them.
Disabling the warning should help too, but it'd have to be warning 4309 (not 2220) that you need to disable. Again, you'd have to do that for both files (or just for the entire compilation).
Are the old and new lines not theoretically the same? One shifted for 32 bits results in 0xFFFFFFFF?
No, 1 << 32 == 0x100000000 == 0xFFFFFFFF + 1).
What can I do to fix this issue?
turning off 'WarnAsError' should help
turning off warning 4309 should help
reverting that one line in your local checkout should help
using Clang instead of MSVC should help
possibly using a different (newer?) version of MSVC would also help
and what could be the reason for this change?
V8 now allows TypedArrays with up to 2**32 elements, which is one more element than before.
Why is this problem only on Windows?
Because warnings are compiler-specific, and MSVC is only used on Windows.
The weird part is that you're seeing this error in the first place. You compile with --x64; if that does what it sounds like, you should be compiling a 64-bit build, where internal::kApiSystemPointerSize == 8 and size_t has 64 bits just like uint64_t, so in the expression static_cast<size_t>(uint64_t{1} << 32); nothing gets truncated.
Even if for whatever reason this build tried to create a 32-bit build of V8, then the other branch should be taken (internal::kApiSystemPointerSize == 4) and the compiler should be smart enough not to warn about a branch that's statically dead anyway.
At any rate, this seems like a compiler bug/limitation. So appropriate workarounds are to either update your compiler, or disable the erroneous warning.
In the SAP Documentation is an EXPORT statement described.
Unfortunately I have the following error in a stored procedure:
Syntax error in procedure object: incorrect syntax near '#': line 18 col 8 (at pos 487)
Line 18 is:
EXPORT #MY_EXPORT AS CSV INTO '/path/filename' with replace;
How to fix this?
Full SQL
PROCEDURE "MY_SCHEMA"."my.package::EXPORTCVINTOCSV" ( )
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
DEFAULT SCHEMA MY_SCHEMA
AS
BEGIN
--create local temporary table #MY_EXPORT as (
create table MY_EXPORT as (
SELECT a.*
FROM "_SYS_BIC"."my.package/myView" a
JOIN "_SYS_BIC"."my.package/myOtherView" b
ON a."CheckID" = b."CheckID"
WHERE a."SchedulingID" IS NOT NULL
);
EXPORT MY_EXPORT AS CSV INTO '/my/export/path' with replace;
END;
for unknown reasons IMPORT & EXPORT are not supported as procedure body, but as workaround you can wrap them into exec, .e.g.
EXEC 'EXPORT MY_EXPORT AS CSV INTO ''/my/export/path'' with replace';
the error message is confusing, but export of local temporary tables is anyway not supported.
If you try such statement outside the procedure you get:
SQL Error [7] [HY000]: SAP DBTech JDBC: [7]: feature not supported: cannot export local temporary table #MY_EXPORT
I keep trying to run a apoc.load.csv procedure in the newest version of Neo4j 3.1.0, and APOC 3.1.0.3.
CALL apoc.periodic.iterate('CALL apoc.load.csv("file:///data.csv",
{sep:",", header:TRUE}) yield map ','
with {map} as map MATCH (t:Tweet{id:toFloat(map.tweet_id)})
SET t.clean_text = map.clean_text,
t.positive_score = toInt(map.nb_positive),
t.negative_score = toInt(map.nb_negative),
t.sentiment_score = toInt(map.score)',
{batchSize:5000, parallel:true})
Error: Failed to invoke procedure apoc.periodic.iterate: Caused by:
org.neo4j.graphdb.QueryExecutionException: Failed to invoke procedure
apoc.load.csv: Caused by: java.lang.RuntimeException: Import from
files not enabled, please set apoc.import.file.enabled=true in your
neo4j.conf
I have tried just running the apoc.load.csv piece and I still get the same error telling me to add the statement to my neo4j.conf file, which I have. I've even restarted my computer.
I was able to run this exact same statement successfully in Neo4j 3.0.6 and APOC 3.0.4.1, but it doesn't work since I upgraded.
I think that this is likely a bug.
If you click on the 'star' in the browser and then under 'System' there is a link to 'Server Configuration'. Run this query to see what Neo4J thinks it has wrt setting.
Part of this looks like:
{
"isIs": "false ",
"name": "apoc.export.file.enabled",
"description": "Configuration attribute",
"type": "java.lang.String",
"isReadable": "true",
"value": "true",
"isWriteable": "false "
},
which indicates that the file import setting is there and correctly formatted.
The question is then why isn't this being honoured? This is as much as I've been able to determine facing the same problem.
I'm currently trying to write a bash-monitoring-script for a Fujitsu Primergy RX300 S6, running with XenServer 6.5.0.
After downloading the MIB-files from the Fujitsu-Page I'm getting several errors, trying to run the following line snmpget -Ov -v 2c -c PUBLICKEY SERVER.IP SNMPv2-MIB::sysUpTime.0
I'm getting the correct result, but with that there are multiple errors like
Unlinked OID in VMWARE-TRAPS-MIB: vmware ::= { enterprises 6876 }
/usr/share/snmp/mibs/VMWARE-TRAPS-MIB.mib Textual convention doesn't map to real type (DisplayString): At line 26 in usr/share/snmp/mibs/log3v1.mib : (is a reserved word): At line 27 in /usr/share/snmp/mibs/log3v1.mib : (is a reserved word): At line 28 in /usr/share/snmp/mibs/log3v1.mib Unlinked OID in FSC-LOG3-MIB: sni ::= { enterprises 231 }
Undefined identifier: enterprises near line 13 of
[...]
I do unterstand, that it says that some definitions (from foreign MIBs) are missing, but how do I get the correct ones?
Check your IMPORTS definition in MIB files that you are trying to use. These are basically your external dependencies. Try downloading these MIB MODULEs either from vendor website or if it is standard MIB file like RFC1155-SMI and RFC1213 you can easily find it via google.
Here is an example:
IMPORTS
enterprises, OBJECT-TYPE
FROM RFC1155-SMI
DisplayString
FROM RFC1158-MIB;
If I have:
import demo::lang::Exp::Concrete::WithLayout::Syntax;
if ((Exp)`<IntegerLiteral e> + <IntegerLiteral e>` := (Exp)`5 + 6`) {
println(e);
}
This prints 6. Is this a possible bug or a design decision, e.g. because of performance considerations? It should of course not print anything, since e cannot be matched to both 5 and 6. This is, however, in contrast to matching with ADTs, where this is caught, i.e.:
data ExpNum = numb(int n) | add(ExpNum e1, ExpNum e2);
if (add(numb(x), numb(x)) := add(numb(5), numb(6))) { println(x); }
Will not print a number, while it does print a number when using numb(5) instead of numb(6).
Ps. I ran the example both from Rascal source using Eclipse Plug-in Development (using a forked version merged with the latest version of Rascal), as well as on two machines using the official Eclipse plugin. The plugin, however, returned the following on both machines:
|stdin:///|(4,46,<1,4>,<1,50>): Java compilation failed due to with classpath [/home/wouter/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar]: package org.eclipse.imp.pdb.facts.type does not exist
The reason why I am asking is because, somewhat similarly, ConcreteListVariablePattern automatically throws a RedeclaredVariable-exception without checking if the match result's value is equivalent to the variable in the environment, in contrast to e.g. QualifiedNamePattern which checks if the result is equivalent to the value in the environment in case of a readily declared variable.
Thank you!
This is definitely a bug: the variable e is declared twice (without warning), the match succeeds and the binding to second e is printed.
Expected behavior would be that a RedeclaredVariable exception is thrown.
A work around is as follows:
if ((Exp)`<IntegerLiteral e1> + <IntegerLiteral e2>` := (Exp)`5 + 6` && e1 == e2) {
println(e1);
}