Recordset errors
Hi new post here. Quick history of the issues I'm having. I was running CF 8 64 bit with Vista and had the MS Access driver problem. SO I downloaded CF 9 32 bit version and can now set my data source for an Access database. No problem, here now, so it's good. Now when I define a recordset for a select query, I add several files to the Select statement and for some reason a particular record that I add, CF always puts the name of the record in brackets. that is "size" my database was no bracket included, but CF adds just on the name of the record. With CF 8, it doesn't seem to be a problem, but with version 9, it now throws an error message: adojni.ComException: invalid use of '. «, » !', ou « () ». in a query expression tblSwimwear. "" Size "in Microsoft JET database engine code 3092
I know it's a lot to digest, but I am very confused as to what is happening here. New CF 8 had no problem with the "" around waist. I can even go and delete the brackets around size until I have test the select query and still get the error. If I leave aside the size record, I get no error.
I will add this to ensure that '; m which covers all the bases, but when I set my datasource, I had to use Unicode in Microsoft Access as my driver. Don't know if it would make a difference, but can always let anyone who can help to know. Thanks in advance!
not sure what you mean by fleeing with hooks. You mean put the [] around waist? Please explain.
It seems that the forum deleted some of the characters in my post.
Try
ORDER BY tblSwimwear.Color
Tags: ColdFusion
Similar Questions
-
General project information
- Using Captivate 5.5 to create quizzes.
- SCORM 1.2 Edition
- Report data: Quiz results and slide views
- Report level: Interactions and Score
- I changed the Interaction ID in the text with the question rather than a seemingly random number.
The question - when you try to view the details in our LMS, the following error message is displayed.
ERROR
- clsOLEDB:openRecordset(): Conversion failed when you convert the value 'TCBYOTheft' varchar type int data.
ADODB. Recordset error '800a0e78 '.
Operation is not allowed when the object is closed.
/ Reports/ReportViewer.asp, line 1724
Note: according to me, "TCBYOTheft" is the ID of interaction of the first (random) question slide.
Any help would be appreciated.
Who is a database... error or is it obvious?
Looks like that she expects an integer (number) for this record... and you have a text on him... he can't handle this.
Interaction ID must be integers.
You broke it
You should be able to set other properties of interaction, such as 'description' with textual content for such purposes.
-
Please choose a unique key in the selected Recordset or click Cancel - DWCC2015 error
I am trying to add a form to UPDATE in the PCOC assistance from the server behaviors panel and when I have it, select the unique primary key in my database table, I am presented with the following error:
"Please choose a unique key in the selected Recordset or click Cancel.
I tripled checked - the key that I select is correct, it is a primary key in my table of MSSQL database - it does not accept it.
Any ideas? Clear the Cache of DW and start over?
Thank you.
NJ
As I suggested in another thread, if you really need to use the obsolete server behaviors, install Dreamweaver CS6, which is included in your subscription to creative cloud. Better yet, stop using the server behaviors. They have been deleted, because the code is desperately obsolete. It will stop working in PHP 7, coming in the next two weeks.
-
When I test my recordset I get the data, but when I try to use it I get syntax error
Hello
My recordset looks like this and it works when I test it in the "links/Recordset' but when I locked it and I try to click on the + I get an error message. MySQL Error #: 1064
You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near "on line 2
SELECT AuthorID,AuthFname, AuthInitial, AuthLName, @name := (SELECT concat_WS(', ',AuthFname, AuthInitial, AuthLName) FROM BookAuthor B WHERE A.AuthorID = B.AuthorID ) FROM BookAuthor A ORDER BY AuthLName, AuthFname, AuthInitial
What I'm trying to do is to use the AuthorID as value and the name concatenated for label in a list/menu and choose several authors if necessary when I sign up a book.
Maybe there's an easier way to do this?
I tried concatenate fields in the list/menu Dynamics (label), but I could not.
Any suggestions?
Best regards
Anna
Sorry, your post is very confusing and you have yet to explain why you use a derived table query.
It seems that you need a simple select statement.
Select AuthorID, AuthFname, AuthInitial, AuthLName, CONCAT_WS (",", AuthFname, AuthInitial, AuthLName) as an author
Of BookAuthor
Note that I do not use MySQL and so not really familiar with its CONCAT_WS function but you get the idea. Am I missing something here?
-
Join the recordset with null field that causes errors
The initial value of the form on this page fields are filled in by the next Recordset containing a join:
SELECT *.
OF customers_cus, orders_ord
"" "WHERE the orders_ord.customerid_ord = customers_cus.customerid_cus AND company_cus ='" & Request.Form ("companymenu") & ""
Whenever the database field orders_ord.customerid_ord is not null, the form fields on the well overview page. However, if orders_ord.customerid_ord is null, I receive the following error message:
ADODB. Field error '800a0bcd '.
BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
How can I do that orders_ord.customerid_ord cannot be null?First, abandon your old join syntax. Then, use an outer join.
If you join them join two tables on an intern, then a record with a NULL value in
each join column will be returned.In addition, do not use SELECT *. And you are vulnerable to SQL injections.
SELECT
OF customers_cus
LEFT OUTER JOIN orders_ord WE
orders_ord.customerid_ord = customers_cus.customerid_cus
' "WHERE company_cus ='" & Replace (Request.Form ("companymenu"),"'","" "") & "'Replace the above does not offer complete protection, but it is at least
What do you use to protect yourself."aonefun" wrote in message
News:enjb11$3MT$1@forums. Macromedia.com...
> The initial value of the fields in the form on this page are met by the
> suite
> recordset containing a join:
>
> SELECT *.
> OF customers_cus, orders_ord
> Orders_ord.customerid_ord = customers_cus.customerid_cus WHERE AND
' "> company_cus ='" & Request.Form ("companymenu") & "'
>
> When the database field orders_ord.customerid_ord is not null, the
> form
> fields on the overview page. However, if orders_ord.customerid_ord is
> null,.
> I received the following error message:
>
> ADODB. Field error '800a0bcd '.
>
> BOF or EOF is True, or the current record has been deleted.
> Asked
> operation requires a current record.
>
> How to make it that orders_ord.customerid_ord cannot be null?
> -
Sudden Error 403 forbidden on Test Recordset
I have a wiered problem that just started playing last night. I have used with success DW to create my web site www.URTournament.org for a while now and I could already use all the features without problem.
Now I can always connect to databases and to browse the DB schema via db server behaviors browser, but when I goto links or recordset > test it gives me a 403 Forbidden error.
If I change the mmhttodb permissions, php to 644 to something else it errors with a 500. So I can't use the sloutions written that I've seen online. I know that some people have runinto this, but no answers have been posted online. Help, please. Thank you.When this happened to me, it was a problem of server security. Have your folk server check the configuration of the script (CF, PHP, etc.) files.
In fact, they had to move me to another server (with a fresh installation) to get this working.
-
Hello!
After the end of my second day of test error, I put this question on the table:
I use ArraytoChannels function to store ADO recordsets as strings. What is strange, is that for the first Recordset, it works; but for the next time through the loop, it always fails with the error message 'cannot be added because the channels of the target are not all the same length.
I confirmed that:
the RowData sizes and the ChannelNames are equal,
both spend the isarray = true test,
I change the order of the ChannelNames,.
I have reconnected/disconnected from the oConnexion every time, nothing has changed.
Apparently I'm missing something - but crazy to know what! -If anyone can share his opinion I'll so much appriciate. Here is my code:
oTables = Array ("WellStates", "ChokeData", "WellParameters", "FlowData", "PumpData", "SensorsData", "ModelCalculatedData")
Call OpenSQLConnection
Set oRecordset = CreateObject ("ADODB. Recordset')
Call SelectWell
Call GetWellStateIDsData.Root.Clear
for j = 0 to ubound(oTables,1)sSQLSting = "select * []" & oTables (j) & "] where [WellStateID] between" & WellStateIDFirst & "and" & WellStateIDLast ".
oRecordset.Open sSQLSting, oConnexion
Protected oFieldNames: table: ReDim oFieldNames (orecordset. Fields.Count - 1).
for i = 0 to orecordset. Fields.Count - 1
oFieldNames (i) = orecordset. Fields.Item (i) .name
next
oArray = oRecordset.GetRows (-1, 0, oFieldNames)
Set oGroup = Data .root .ChannelGroups .Add (oTables (j))oArray, oFieldNames arraytochannels
oRecordset.close
oConnection.Close
nextSub GetWellStateIDs
sSQLSting = "select * from [WellStates] where [wellid] =" & WellID
oRecordset.Open sSQLSting, oConnexion
oArray = oRecordset.GetRows)
WellStateIDFirst = oArray (0,0)
WellStateIDLast = oArray (0, ubound(oArray,2))
oRecordset.close
EndSubSub OpenSQLConnection
Set WshNetwork = CreateObject
oComputerName = WshNetwork.ComputerName
oDB = "MX2. Player.DB ".
Set oConnexion = CreateObject ("ADODB. Connection")
oProvider = "Provider = SQLOLEDB.1; Integrated Security = SSPI; PeoExecuteist Security Info = True; Data Source ='
oProvider = oProvider & oComputerName & "\MX; Use procedure for prepare = 1; Machine translation = True; The packet size = 4096; Workstation ID ="
oProvider = oProvider & oComputerName & " Use encryption for data = False; Tag with column collation when possible = False; Initial Catalog ='
oProvider = oProvider & oDB
oConnection.ConnectionString = oProvider
oConnection.Open
EndSubAnother clue. If you check using DIAdem
Microsoft Windows Script Debugger
you are able to install the debugger in DIAdem.
It would potentially have shown that the command does not work as expected.
Sorry for the inconveniance
Andreas
-
DB connectivity Kit: syntax error in a SELECTION of data from joined tables
Hello everyone
I'm putting in labview a SQL query on joined tables.
As an example I take a database to store the data of basketball 2on2 matches, which tables are
corresponds to (matchId, Thomas, teamB)
teams (teamId,PlayerAname, PlayerBname, nationality)
nationalities (NatId, natName)
To get an array of result with the game as well as the names of player as well as their nationality, I use this query on MySQL (which works on command line interface)
SELECT MatchID,
T1. PlayerAName, t1. PlayerBName, n1.natName,
T2. PlayerAName, t2. PlayerBName, n2.natName
MATCHES m
INNER JOIN teams t1 ON t1.teamID = m.teamA
INNER JOIN teams t2 ON t2.teamID = m.teamB
INNER JOIN nationalities L1 ON n1.natID = t1.nationality
INNER JOIN nationalities n2 ON n2.natID = t2.nationalityWhen I put it in labview, using the block 'select data', I get a syntax error as shown in the attached screenshot.
Am I something mistanking using the JOIN examples statements or aliases?
Thanks in advance!
The select VI is designed to be a simple way to select from a table. I doubt that he can do joins (and would not certainly need the 'FROM', even if it can). What you can do instead calls the query execute VI and give him the complete SQL query. I don't remember if it returns the data in the recordset object, so you must do so separately.
-
ADO error: SQL execute.vi is not executable.
Thanks for all those who are willing to help me out of this problem which intrigued me several days, I can't find a similar one of Google or another forum...
Problem:
When I was with LabSQL, he came a mistake:
Sub - VI "execute SQL": Subvi is not executable. and then I looked for the source of the error, it finally turned the
"ADO Recordset GetString.vi":
' invoke the method node: invalid '.
' invoke the node: invalid refnum class.
What I have used is Windows 7 and LabVIEW7.1.
The details of this problem, which includes the vi and a few photos of the error and ADO functions, I used is attached.
Ute.VI' is
Hi FedorLeon,
I opened the LabSQL library, and no VI is broken in it. Which brings me to think about 2 possibilities:
-Your TEEN of ActiveX on your computer is not installed properly or not using is not the same version, as expected by the library.
-Your LV 7.1 on Win7 fails. That wouldn't be surprising, because the first version of LabVIEW to support Win7 is LV 2009SP1 ;-) Make a test on a machine XP LV or a LV 2012 on your Win7 machine!
Kind regards
-
91 error to the database for data Variant
Hello
This issue was raised after that I "solved" this problem earlier today: http://forums.ni.com/ni/board/message?board.id=170&thread.id=446931
Now, I get the above error message on all functions 'DB retrieves the element '...
I have the polymorphic option off - as I have it set to automatic... The stored procedure in the above case is trying to choose a 0 or a 1, Boolean values ala. However, this is not the only point of failure. Actually, I get this error on each item to search, using 4 data types: Boolean, String, I32 and DBL...
Can you see what I'm doing wrong? I spose I'll upload my VI, but you will not necessarily be able to see the data of my STORED procedure is back...
Thank you!
Dave
OK, this problem occurred because the stored procedure has been throwing up on my settings input parameter, unbenouced for me until I entered the code...
The reason why I was getting this error was that I believe because I was getting a NULL Recordset...
After that, I fixed my problem of input parameter, this large all worked.
-
I'm a simple boy from desktop with an error Access 2002 method or data member not found
Hi, recently had 2 of the 3 stations imagined DAO2535 error, get compilation error now (fixed reference to DAO3.6).
all stations have the same version of front end using xp 2002, access 2002. The Station who works has sp2 installed, others have recently installed sp3 ahd. I am a boy of simple office with little experience on this type of program coding. I did not write it of course.
Here is the code where the failure occurs... any help would be appreciated.
Option Compare Database
Option ExplicitPublic void GlobalFormOpen (MyParentName As String, MyFormName As String) As Boolean
' MyParentName is no longer necessary with subforms, otherwise use GlobalFormOpen ' ","formname ".
' Static variables to ensure that the dlookups are made only once (the first time this function is called).
' The dlookups are also performed when this function is called as GlobalFormOpen ' ', ' ' (of the merger).
Dim ctl As Control, frm As Form
Static MyDetailColor As Long, MyHeaderColor As Long, MyFooterColor As Long, MyTextBoxColor As Long, MySpecEffect As Integer, MyBordStyle As Integer, MyBackStyle
' Stop
If MyDetailColor = 0 or MyFormName = "" then
Dim db As Database, rs As Recordset
Set db = CurrentDb
Set rs = db. OpenRecordset ("qUser")
If Not rs. When the EOF
MyDetailColor = rs. DetailColor
MyHeaderColor = rs. HeaderColor
MyFooterColor = rs. FooterColor
MyTextBoxColor = rs. TextBoxColor
MySpecEffect = rs. SpecEffect
MyBordStyle = rs. BordStyle
MyBackStyle = rs. BackStyle
On the other
MyDetailColor =-2147483633
MyHeaderColor =-2147483633
MyFooterColor =-2147483633
MyTextBoxColor = vbWhite
MySpecEffect = 0
MyBordStyle = 1
MyBackStyle = 1
End If
Set rs = Nothing
Set db = Nothing
End If
If MyFormName <> "" then
If MyParentName = "" then
Set frm = Forms (MyFormName)
On the other
Set frm = Forms (MyParentName) (MyFormName). Form
End If
On Error Resume Next
If Nz (InStr (frm. Section (0). (Tag, 'NoFormat')) = 0 then frm. Section (0). BackColor = MyDetailColor
If Nz (InStr (frm. Section (0). (Tag, 'NoFormat')) = 0 then frm. Section (1). BackColor = MyHeaderColor
If Nz (InStr (frm. Section (0). (Tag, 'NoFormat')) = 0 then frm. 2 BackColor = MyFooterColor
On Error GoTo 0
For each ctl in frm. Controls
If ctl. ControlType = acTextBox or ctl. ControlType = acComboBox or ctl. ControlType = acCheckBox or ctl. ControlType = acOptionButton or ctl. ControlType = acOptionGroup Then
If Nz (InStr (ctl. (Tag, 'NoFormat')) = 0 Then
CTL. SpecialEffect = MySpecEffect
CTL. BorderStyle = MyBordStyle
If ctl. ControlType = acTextBox or ctl. ControlType = acComboBox Then
CTL. BackColor = MyTextBoxColor
CTL. BackStyle = MyBackStyle
End If
End If
End If
Next CTL
If right (frm. Legend 1) <> ') "then
FRM. Caption = frm. Legend & "(" & CurrentUser & "')" "
End If
Set frm = Nothing
End If
' MsgBox MyParentName & "." & MyFormNameEnd Function
Hello
Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please ask your question in the Forums Pro Windows XP IT.
-
I have a user who is running Windows XP Professional SP3. They use Internet Explorer 8. We're currently on Exchange 2007. For some reason any when he tries to double click on an email from owa, he gets the following error.
Information about the customer
------------------
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; InfoPath.1 CLR 2.0.50727 .NET CLR 3.0.04506.30 .NET; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) CPU class: x 86
Platform: Win32
System language: en - us
User language: en - us
CookieEnabled don't: true
MIME types:
Details of the exception
-----------------
Date: Tue Jan 25 15:07:09 THIS 2011
Message: Class not registered
URL:https://Name deleted to protect the innocent/owa/8.1.375.2/scripts/premium/uglobal.js
Online: 36
The call stack
----------
() sfWinOpn, 289072, toolbar = 0, location = 0, directories = 0, status = 1, menubar = 0, scrollbars = 1, resizable = 1, width = 700, height = 500
opnWin (report, iW, iH, CF, sWN, fMB)
Report = "?" AE = Item & a = Open & t = IPM. Note & id = RgAAAABc16ZRt % 2bsLTYoU811vW0k6BwD9fjPBQZk9QK7URJup7OgoAAAAAC1% 2fAABQUUwSHjuRSYYnTgyI2ovRAAfyo3hSAAAJ"
iW = 700
iH = 500
fC = 'null '.
sWN = 289072
Format = function () {var s =; for (var i = 0; I)}
LC = function () {return this.toLowerCase () ;}
startsW = function (s) {return this.indexOf (s) == 0 ;}
Trim = function () {return this.rTrim () .lTrim () ;}
rTrim = function () {(return this.replace(/\s*$/,"") ;} "}
lTrim = function () {(return this.replace(/^\s*/,"") ;} fMB = "undefined" "}
openItm (report, sNme, fCl, iW, iH)
Report = "?" AE = Item & a = Open & t = IPM. Note & id = RgAAAABc16ZRt % 2bsLTYoU811vW0k6BwD9fjPBQZk9QK7URJup7OgoAAAAAC1% 2fAABQUUwSHjuRSYYnTgyI2ovRAAfyo3hSAAAJ"
o = 0
fCl = 0
iW = 0
iH = 0
openItms (report, ctx, fCl)
Report = "null".
CTX = "undefined".
fCl = "undefined".
onNavigateVw (oE)
oE = [object Object]
feOnNav (sCtx, fCb)
sCtx = "undefined".
fCb = "undefined".
onDbClkLV()
Dump event
----------
Recordset = null
type = error
fromElement = null
toElement = null
altLeft = false
keyCode = 0
repeat = false
reason = 0
data =.
behaviorCookie = 0
source = null
contentOverflow = false
behaviorPart = 0
URL =
dataTransfer = null
ctrlKey = false
shiftLeft = false
dataFld =
returnValue = undefined
qualifier =
wheelDelta = 0
Favorites = null
button = 0
srcFilter = null
nextPage =
cancelBubble = false
x = 0
y = 0
srcElement = null
screenX = 336
screenY = 420
srcUrn =
origin =
boundElements = [object]
clientX = 158
clientY = 226
propertyName =
shiftKey = false
ctrlLeft = false
offsetX = 0
offsetY = 0
altKey = false
errorMessage = unregistered class
errorUrl = https://Name deleted to protect the innocent/owa/8.1.375.2/scripts/premium/uglobal.js
errorLine = 36
errorCharacter = 260
error code = 0
It is not account because I tried under several accounts. I don't think it's associated with Exchange because we are only having the problem on one machine. I tried at this point to reset Internet Explorer settings (leaving the default user), restore advanced settings, update of Java. The user is already an administrator on the machine.
Hello
According to Richard Harper, I suggest you post in the Technet Forum for customers Exchange (OWA).
I've included a link to the forum you should post here: http://social.technet.microsoft.com/Forums/en-us/exchangesvrclients/threadsThey would have experts better able to solve your problem of Exchange client.
Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
Hello
It would be helpful to me if someone can give me instructions on setting the version of driver or oracle client required to connect to the the Oracle DB using excel VBA
My config: -.
Windows - 8-64 bit
Excel 2013-32 bit
The components of the client / I should install, and how to solve the question below...
I tried the VBA code... but you are prompted with the error message above
Void Oracle()
Con Dim As ADODB. Connection
Dim rs As ADODB. Recordset
Dim query As String
The con value = New ADODB. Connection
Set rs = New ADODB. Recordset
strCon = "Driver = {Microsoft ODBC for Oracle}"; "." & _
"CONNECTSTRING = (DESCRIPTION ="& _.
"(ADDRESS =(PROTOCOL=TCP)"& _
"(HOST = HostNumber)(PORT=PortNumber))" & _
"(CONNECT_DATA = (SID = SIDNumber))); UID = username; pwd = password; »
con. Open (strcon)
If err. <>Number 0 then
MsgBox ("Oracle error:" & vbCrLf & err.) Description)
On the other
MsgBox ("Oracle DB Connection successful.")
End If
End Sub
I'll replace it with the values of host origin...
Thanks for the suggestion you till u gave...
complete solution is in the link below...
https://itkbs.WordPress.com/2014/07/28/how-to-install-ODBC-driver-for-Oracle-in-Windows-7/
-
Dear team of SQL Developer,
It seems that the calculation of the length of the column in the expected and received recordsets behaves differently in some cases (when stored proc variables are used in the generation of the REF CURSOR, despite the explicit definition of the type of record): the length of the header and the length of the value in the set of records received are truncated to arbitrary length based on the returned value which leads to a false failure of a unit test. I.e. registries are the same in both sets of records, but the test run fails to the comparison of the recordsets because of different length. Please see the screenshot below:
Here's the test case if you need to reproduce the problem/bug in your environment:
1. use the default schema of HR of the Oracle examples package that comes with an 11 g database.
2. change the HR. Table EMPLOYEES with the addition of a new column VARCHAR2 (4000) LONG_LAST_NAME:
ALTER TABLE HR. EMPLOYEES
ADD (LONG_LAST_NAME VARCHAR2 (4000));
Update hr.employees set long_last_name = last_name;
commit;
3. create a PKG_TEST2 package with the source code below in the HR schema:
----------------------------------------------------------------------------------------------------------------------
create or replace PACKAGE PKG_TEST2 AS
TYPE EmployeeInfoRec IS RECORD
(
long_last_name employees.long_last_name%TYPE,
first name employees.first_name%TYPE,
E-mail employees.email%TYPE
);
TYPE EmployeeInfoRecCur IS REF CURSOR RETURN EmployeeInfoRec;
FUNCTION getEmployeeInfo (p_Emp_Id employees.employee_id%TYPE)
RETURN EmployeeInfoRecCur;
END PKG_TEST2;
----------------------------------------------------------------------------------------------------------------------
CREATE OR REPLACE PACKAGE BODY PKG_TEST2 AS
FUNCTION getEmployeeInfo (p_Emp_Id employees.employee_id%TYPE)
RETURN EmployeeInfoRecCur AS
v_EmployeeInfoRecCur EmployeeInfoRecCur;
v_LongLastName varchar2 (4000);
BEGIN
Select long_last_name from v_LongLastName
employees
where employee_id = p_Emp_Id;
--
OPEN FOR V_EmployeeInfoRecCur
V_LongLastName SELECT long_last_name,
first name,
E-mail
This_is_very_long_table_alias employees
WHERE employee_id = p_Emp_Id
order by 1 CSA;
--
RETURN v_EmployeeInfoRecCur;
EXCEPTION
WHILE OTHERS THEN
LIFT;
END getEmployeeInfo;
END PKG_TEST2;
----------------------------------------------------------------------------------------------------------------------
4. create a unit test for the PKG_TEST2.getEmployeeInfo stored procedure: (click the command create Test, select the stored procedure, click Ok for the pop-up message, click Next, click Finish).
5. update the default value of dynamic query of value with the one below and save/post changes.
Select the cursor)
SELECT long_last_name,
first name,
E-mail
Employees
WHERE employee_id = idqry.employee_id
order of the 1 CAD
) RETURNS $,.
idqry.employee_id as P_EMP_ID
from (select employee_id
employees
where rownum < = 5) idqry
6. run the unit test newly created in the debug mode to display the shot.
Thus, the record type 'EmployeeInfoRec' in the package clearly defines the LONG_LAST_NAME as VARCHAR2 (4000) through reference for the data type of column in the referenced table.
But for some reason, the SQL Developer does not calculate correctly its length in the recordset "Receipts" If a variable is used (could be one as variable simple varchar2 in this reproducible test or complex variable of type of the object).
Any ideas on that? Looks like another bug...
Thank you
Val
The bug has been reproduced by the SRB and documented within the system of Support of Oracle SQL Developer team to pick it up:
Bug 19943948 - TEST UNIT RETURNS EXPECTED ERROR: [LONG_LAST_NAME
Hope the bug name can later be changed to something more descriptive, but it is not really... my only concern is the speed at which the known bugs would be fixed...
Thank you
Val
-
Dear team of SQL Developer,
It seems that the headers in the expected and received Recordset behaves differently: the headers of expression in the expected Recordset are truncated to 30 characters and the same expression in the set of records received headers are not truncated, which leads to a false failure of a unit test. That is that the records are the same in both sets of records, but the test run fails to comparison of sets of records due to the different headings. Please see the screenshot below:
Here's the test case if you need to reproduce the problem/bug in your environment:
1. use the default schema of HR of the Oracle examples package that comes with an 11 g database.
2 create a PKG_TEST package with the source code below in the HR schema:
----------------------------------------------------------------------------------------------------------------------
create or replace PACKAGE PKG_TEST AS
TYPE EmployeeInfoRec IS RECORD
(
employees.last_name%type last_name,
first name employees.first_name%TYPE,
E-mail employees.email%TYPE
);
TYPE EmployeeInfoRecCur IS REF CURSOR RETURN EmployeeInfoRec;
FUNCTION upperCaseLastName (p_Last_Name employees.last_name%TYPE)
RETURN varchar2;
FUNCTION getEmployeeInfo (p_Emp_Id employees.employee_id%TYPE)
RETURN EmployeeInfoRecCur;
END PKG_TEST;
----------------------------------------------------------------------------------------------------------------------
CREATE OR REPLACE PACKAGE BODY PKG_TEST AS
FUNCTION upperCaseLastName (p_Last_Name employees.last_name%TYPE)
RETURN varchar2 AS
BEGIN
RETURN upper (p_Last_Name);
END upperCaseLastName;
FUNCTION getEmployeeInfo (p_Emp_Id employees.employee_id%TYPE)
RETURN EmployeeInfoRecCur AS
v_EmployeeInfoRecCur EmployeeInfoRecCur;
BEGIN
OPEN FOR V_EmployeeInfoRecCur
SELECT upperCaseLastName (last_name),
first name,
E-mail
This_is_very_long_table_alias employees
WHERE employee_id = p_Emp_Id
order by 1 CSA;
--
RETURN v_EmployeeInfoRecCur;
EXCEPTION
WHILE OTHERS THEN
LIFT;
END getEmployeeInfo;
END PKG_TEST;
----------------------------------------------------------------------------------------------------------------------
3. create a unit test for the PKG_TEST.getEmployeeInfo stored procedure: (click the command create test, select the stored procedure, click Ok for the pop-up message, click Finish).
4. update the default value with the following dynamic query and save the changes.
Select the cursor)
SELECT pkg_test.upperCaseLastName (last_name),
first name,
E-mail
This_is_very_long_table_alias employees
WHERE employee_id = idqry.employee_id
order of the 1 CAD
) RETURNS $,.
idqry.employee_id as P_EMP_ID
from (select employee_id
employees
where rownum < = 5) idqry
5. run the unit test newly created in the debug mode to display the shot.
The work around is to use an alias for the expression of long short, but our code is in Production, and we do not a new version whenever soon to add aliases... but we plan to use SQL Developer to automate our unit of PL/SQL code, tests once we clearly have some of the problems with the tool, we know...
Please advise...
Thank you
Val
Of course, Jeff... CS it logged as a bug... could be changed to apply for development later, I guess...
BUG 19826375 - header BEHAVIOR IN the GAMES of RECORDS EXPECTED/RECEIVED LED to the ERROR
Thank you
Val
Maybe you are looking for
-
Hi, I have audio problems! I downloaded Skype on my windows laptop 10, and I have audio problems with only my Skype. I checked the audio setting on my laptop and they are very well, I tried to save regularly, and it was perfectly good. I checked the
-
Error 54 on udp multicast cRIO
I'm trying to get a data broadcasting cRIO-9075 on a network with UDP. I opened the UDP multicast examples and they work fine when I run them on my development computer. When I deploy and run the examples on the controller for cRIO, however, I get ei
-
The password bios EliteBook 8470 p: 8470p
Hi can any body help me. I bought an elitebook 8470p online for my device of the school for girls, but the BIOS is password protected and it will start only from the HARD drive. I need to install an OS on it!. How can I unlock it? SKU C8J77PA #ABG S/
-
I bought aspire V3 - 574 G-54VY a month back. It runs on windpws 10 64-bit. There is a problem with the Qualcomm Atheros QCA61x4 Wireless Network Adapter. Whenever I update the driver to version 12.0.0.116 I face extremely slow internet. But when I g
-
When Microsoft will fix the problem they created with Skype.
It's been more than 24 hours now that Skype has worked on my pc. When Microsoft will have their sh * t together and rectify the problem, they created with this program. Now it becomes ridiculous and smells of incompetence!